JFXStudio: sketch, hack, share

Reversifx : Javafx mobile Reversi

Posted by: Muhammad Hakim on: May 29, 2009

update: 18/06/09 + source code
You can download the source code from here:
Reversifx

Recently i create a game reversi for mobile device using javafx. Reversi is an old game that was created in 1883 by Lewis Waterman. The game is played on an 8×8 board with 64 tiles that are black on one side and white on the other. The game starts with 4 tiles in the center of the board, two black and two white. Each player takes a turn placing a tile on the board. A player can only place a tile on the board if the move is valid. For the move to be valid, there must be an adjacent enemy tile and another player tile in a straight line behind it. All the enemy tiles in the line get flipped and belong to the player that made the move. The picture below shows all the possible black moves and the affected tiles. If there are no valid moves on the board, then a player can be skipped. The game goes on until the board is filled or there are no valid moves for both players. The player with the most tiles on the board wins.

Without further ado, here is the screenshot (click the image below to play)

Reversifx mobile

Reversifx mobile

by default AI play first with black piece.

4 Responses to "Reversifx : Javafx mobile Reversi"

[...] Ditulis oleh Muhammad Hakim di/pada 27 Mei 2009 3:22 am update (29-04-09): altough the source code not yet provided, i was publish this post at jfxstudio. [...]

[...] Reversifx : Javafx mobile Reversi Posted May 29, 2009 [...]

[...] is the original post: Reversifx : Javafx mobile Reversi « JFXStudio: sketch, hack, share Thank you for reading this post. You can now Leave A Comment (0) or Leave A [...]

[...] butuh source code buat demo di sini, jadinya malam ini ku publish saja source code program ini di jfxstudio, dan tentu saja juga di blog ini :) . meski jauh dari sempurna, karena sudah tidak saya sentuh lagi [...]

Leave a Reply

Challenge: Small is the New Big

This month's challenge: code something cool in only 30 lines, using the theme of Five

Tags

Archives