This is a sample app for the hurok UDF framework and a fully playable Othello game. Playing against the computer and human vs. human games are both supported. It also has a history view to see and analyze past game moves. The app works on phones and larger screens as well in an adaptive fashion.
For a good example of how hurok is used, please have a look at the code for the game history feature; it's a bare-bones list of past game moves.
You can grab a ready-built APK from GitHub Actions.
The game includes some very basic strategy implementations for a single human player to play against. These are:
- Max Flip: Picks the valid move which results in the highest number of opponent disks flipped.
- Random Pick: Randomly picks one from the set of valid moves.
- Schizophrenic: Alternates randomly between the rest of the strategies in each turn.
Additionally, each strategy can be forced to prefer picking a position on the side of the board which often means an advantage in Othello.
To see how these strategies are implemented and how to implement your own, please see the strategy
package in the :core:game
module.
- Maintenance release
- Add option to reset settings to defaults
- Improve "Prefer sides" strategy (prefer corners more than sides)
- Add Schizophrenic strategy (combines all the other strategies)
- Disable "show possible moves" by default
- Fix layout for larger screens
- Ability to step between past turns
- History improvements
- Automatic scrolling (can be toggled in settings)
- Jump to past board state on click
- Exit confirmation with option
- Small UI improvements
- Bug fixes
- Maintenance release
- Add basic baseline profiles
- Game history
- Adaptive navigation
- First release
This game is released under the Apache 2.0 license. Please see LICENSE for details.