Reversi Game in Appinventor

151 views
Skip to first unread message

Ryan Keung

unread,
May 9, 2015, 9:34:01 AM5/9/15
to mitappinv...@googlegroups.com
Can anyone help me make reversi in Appinventor or give me some tips on how I could/should make the game. 

Thanks in advance,

SteveJG

unread,
May 9, 2015, 10:00:57 AM5/9/15
to mitappinv...@googlegroups.com
Wow, that would be neat.

Reversi is a two player game.  What you do depends on whether there is going to be two players (possibly hard) or one playing the Android (very hard).

You need a game board.  You can make that with a Table Layout and Buttons   or you could use the Canvas with hot spots or possibly using sprites as the playing tokens. This is easy so far.

 image is from WikiPedia http://en.wikipedia.org/wiki/Reversi

A starting place might be My 36 buttons with Scotts snap    https://groups.google.com/forum/#!searchin/mitappinventortest/36$20buttons/mitappinventortest/c7xYUTKFG_Q/hlwOMxsNm6oJ  if you decide to use a Canvas.

The following AI2 games have possible algorithms you might need  


The following discusses Artificial Intelligence (using other programming languages other than AI2) to program reversi games  https://www.google.com/search?q=reversi+game+algorithm&oq=reversi+game+algorithm&aqs=chrome..69i57.7375j0j9&sourceid=chrome&es_sm=93&ie=UTF-8    What you need if this is a single player game, otherwise the app is simpler (not easy, just not as complex).

This web is for programming with Object Pascal, however many of the techniques might be directly compatible with AI event driven programming  http://www.delphiforfun.org/Programs/delphi_techniques/gameboards_reversi.htm       I would use this as a guide.  The TPanel example would be analogous to using a Table Layout with buttons.  The Tstring example would/should work using the 36 buttons programming example where you would increase the buttons from 36 to 64.   Either one of these techniques might work using App Inventor.

Do some reading.  Decide on a strategy and try some blocks.    Let us know how this works for you and then show us what you have done.

Good luck,
Regards,

Steve








Reply all
Reply to author
Forward
0 new messages