Permalink
Switch branches/tags
Nothing to show
Commits on Aug 29, 2015
  1. Fix FEN import with impossible castling claims

    It looks as if github issues #16, #17, and #18 have been caused by a
    FEN string that claims castling is possible when it clearly is not
    (the king is not at home).
    
    Here we add checks to FEN import to ignore these impossible claims,
    and add a few tests.
    
    Thanks to Adrian Dușa for the reports.
    committed Aug 29, 2015
  2. Improve formatting in castling code

    Some bits still think they are trying to save spae.
    committed Aug 29, 2015
Commits on Oct 23, 2014
  1. Merge pull request #14 from OMerkel/master

    Merge Oliver Merkel's new mobile version with nice SVG images
    committed Oct 23, 2014
Commits on Oct 22, 2014
  1. Oops...

    OMerkel committed Oct 22, 2014
  2. Minor correction of offline.appcache files. No need to cache graphics…

    … not used in specific versions.
    OMerkel committed Oct 22, 2014
  3. Update README.rst

    OMerkel committed Oct 22, 2014
  4. Merge branch 'gh-pages'

    OMerkel committed Oct 22, 2014
  5. Make both mobile versions available. One using the projects bitmap gr…

    …aphics and the other using the new SVG chess set. Add favicons and application icons.
    OMerkel committed Oct 22, 2014
Commits on Oct 16, 2014
  1. Merge pull request #13 from OMerkel/master

    Run p4wn now like native fullscreen offline applications on Cellular Mobiles and Tablets with FirefoxOS, Android, iOS
    committed Oct 16, 2014
Commits on Oct 14, 2014
  1. Minor change.

    OMerkel committed Oct 14, 2014
  2. update offline.appcache

    OMerkel committed Oct 14, 2014
  3. More colorful css design.

    OMerkel committed Oct 14, 2014
Commits on Oct 9, 2014
  1. Update README.rst

    OMerkel committed Oct 9, 2014
Commits on Oct 7, 2014
  1. Refactoring code: Get rid of workaround overwriting constants just fo…

    …r compatibility reasons.
    OMerkel committed Oct 7, 2014
  2. Minor refactoring: Get rid of unnecessary expensive getElementById ca…

    …lls. Images don't need any id then. Closer to initial code from Douglas this way again.
    OMerkel committed Oct 7, 2014
Commits on Sep 30, 2014
  1. Update README.rst

    OMerkel committed Sep 30, 2014
  2. Update offline.appcache

    OMerkel committed Sep 30, 2014
  3. Optimize to screen resolution feature. Provides resolution awareness …

    …on mobile devices if switching between portrait and landscape, etc.
    OMerkel committed Sep 30, 2014
Commits on Sep 28, 2014
  1. Update README.rst

    OMerkel committed Sep 28, 2014
  2. Update README.rst

    OMerkel committed Sep 28, 2014
  3. Changes and wrappers so p4wn runs with an offline.appcache. p4wn can …

    …be installed as a packaged application or hosted application on Firefox OS devices to run even offline and in full screen. p4wn can now be installed and run on iOS devices being started via icon from Home Screen and run in full screen, too.
    OMerkel committed Sep 28, 2014
Commits on Apr 18, 2013
  1. Óscar Toledo G.'s website has moved to nanochess.org

    thanks to Óscar for pointing this out.
    committed Apr 18, 2013
Commits on Mar 29, 2013
  1. Fix a comment typo

    committed Mar 29, 2013
  2. Recognise draws due to insufficient material

    With certain combinations of pieces in the end-game, a win is
    impossible however badly the would-be loser plays. These would end up
    being draws under the 50-move rule, but it is tedious to wait for
    that, and the rules of chess allow short-circuit draws to be claimed.
    
    Thanks to Greg Mayer for reporting this.
    http://sourceforge.net/mailarchive/message.php?msg_id=30657626
    
    Reported-by: Greg Mayer <greg@fingerfoodstudios.com>
    committed Mar 29, 2013
Commits on Sep 8, 2012
  1. Fix draw timeout error due to wrong operator precedence

    Due to operator precendence ('==' happens before '&'), pawn moves were
    not resetting the move counter, so a draw could be wrongly offered.
    
    This was found by Ivan Yelizariev, who also suggested a corrct fix.
    
    I fall for this one quite often, so I ran
    
      git grep -E '& ?[0-9]+ ?=='
    
    and found matches in some early versions (e.g., misc/4am/0_6_3.js),
    but none in src/.
    committed Sep 8, 2012
Commits on Aug 12, 2012
  1. Use user agent sniffing rather than document.all for MSIE detection

    New versions have document.all, and they should get the fixed image
    positioning.
    committed Aug 12, 2012
Commits on Aug 11, 2012
  1. [display] Fix piece animation for MSIE6 (thanks Uwe Alex)

    MSIE versions < 7 don't support 'fixed' CSS positioning, and need to
    reference the window.event object, rather than using the passed in
    event argument.
    
    Uwe Alex reported that p4wn 2 wasn't working with an unspecified
    version of MSIE, and correctly identified the DOM events as being the
    problem.
    committed Aug 11, 2012
Commits on Jul 8, 2012