Reversi

From OLPC
Revision as of 10:30, 30 June 2008 by Sethwoodworth (talk | contribs)
Jump to navigation Jump to search
Xo s.png This activity was games
Translate-icon-55px.svg Localization
.POT file NEEDED

see more templates or propose new

Screenshot of Reversi for the OLPC

Reversi (aka. Othello) is a simple strategy board game, an implementation of which was developed at the OLPC Game Jam by DavidL.

Gameplay

More info on the gameplay can be found on Wikipedia's entry for Reversi.

Features

Completed Features

  • Two player gameplay
  • Text-free chip counts and player identification
  • Valid moves are displayed using dots. This is to help new players.
  • Multiple ways of displaying who the current player is:
    • the current player's id is highlighted
    • the dots which indicate valid moves are colored accordingly
  • Black and white compatible graphics.
  • A chip cup that is displayed on game end. When clicked on, the game is restarted.

Unimplemented features / TODO

  • A bigger cursor. The current/default one is too small and does not match the larger one used in most of Sugar.
  • Custom SVG icon - Reversi icon new.svg
  • Network gameplay
  • AI for single player play
  • Draw-time optimizations, which should help conserve laptop power.
  • Multi-color graphics (for use when the laptop is not in black and white mode)
  • More?

Code

The source code for an XO-compatible version of Reversi that was developed at the Game Jam can be found at https://olpc.coderanger.net/svn/reversi/

Patch to work with OLPCGames 1.6:

Index: Reversi.activity/activity.py
===================================================================
--- Reversi.activity/activity.py        (revision 16)
+++ Reversi.activity/activity.py        (working copy)
@@ -1,6 +1,6 @@
-import olpcgames
+from olpcgames import activity

-class ReversiActivity(olpcgames.PyGameActivity):
+class ReversiActivity(activity.PygameActivity):
     """Reversi as a Sugar activity."""

     game_name = 'Reversi'