All Projects → ninegua → reversi

ninegua / reversi

Licence: MIT license
Multiplayer Reversi Game on Internet Computer

Programming Languages

javascript
184084 projects - #8 most used programming language
Modelica
51 projects
CSS
56736 projects
shell
77523 projects
HTML
75241 projects

Projects that are alternatives of or similar to reversi

alpha-zero
AlphaZero implementation for Othello, Connect-Four and Tic-Tac-Toe based on "Mastering the game of Go without human knowledge" and "Mastering Chess and Shogi by Self-Play with a General Reinforcement Learning Algorithm" by DeepMind.
Stars: ✭ 68 (+9.68%)
Mutual labels:  reversi, othello
alphazero
Board Game Reinforcement Learning using AlphaZero method. including Makhos (Thai Checkers), Reversi, Connect Four, Tic-tac-toe game rules
Stars: ✭ 24 (-61.29%)
Mutual labels:  reversi, othello
pedax
Reversi Board with edax, which is the strongest reversi engine.
Stars: ✭ 18 (-70.97%)
Mutual labels:  reversi, othello
reversi-ai
A text based python implementation of the Reversi game with an artificial intelligence as opponent.
Stars: ✭ 34 (-45.16%)
Mutual labels:  reversi
Reversi
🎲 黑白棋 课程设计 + AI (Minimax)
Stars: ✭ 48 (-22.58%)
Mutual labels:  reversi
MyReversi
This is a project for learning game programming. Welcome to help me and fork it.
Stars: ✭ 26 (-58.06%)
Mutual labels:  reversi
Alpha Zero General
A clean implementation based on AlphaZero for any game in any framework + tutorial + Othello/Gobang/TicTacToe/Connect4 and more
Stars: ✭ 2,617 (+4120.97%)
Mutual labels:  othello
UCThello
UCThello - a board game demonstrator (Othello variant) with computer AI using Monte Carlo Tree Search (MCTS) with UCB (Upper Confidence Bounds) applied to trees (UCT in short)
Stars: ✭ 26 (-58.06%)
Mutual labels:  othello
Deep-Reinforcement-Learning-for-Boardgames
Master Thesis project that provides a training framework for two player games. TicTacToe and Othello have already been implemented.
Stars: ✭ 17 (-72.58%)
Mutual labels:  othello
awesome-motoko
A curated list of Motoko code and resources.
Stars: ✭ 43 (-30.65%)
Mutual labels:  internetcomputer

Multiplayer Reversi Game on Internet Computer

Read about how the game was made!

This game runs on Internet Computer as a canister. Users can communicate with this canister by sending messages, which are just asynchronous function calls.

Reversi Screenshots

Play it at https://ivg37-qiaaa-aaaab-aaaga-cai.ic0.app

Backend

The game backend is written in Motoko.

register(player_name) - Register the caller using the player name.

start(opponent_name) - Start a game expecting an opponent. If the name is empty string, the game will accept whoever joins next. The first player starting a game will play black, and the second player will play white.

view() - Get the up-to-date game state.

move(row, col) - Place a piece at the given row and column (caller must be a registered player and has started a game).

The game will also keep player scores across all games.

Frontend

The GUI frontend is build with Javascript and Mithril. It is stored as a separate asset canister directly on Internet Computer, and can be loaded at the game URL into a browser.

The terminal-based frontend no longer works with the new multiplayer API. The DFINITY SDK currently lacks a way to switch or use different keypairs, which means the caller identity cannot change, so we don't have a way to run the game using the dfx command.

Installation

To run the game locally, you need to install DFINITY SDK first, which also requires Node.js and npm.

After starting dfx (dfx start --background), run the following to build and install the canister:

dfx deploy
echo "http://localhost:8000/?canisterId=$(dfx canister id reversi_assets)"

The last command prints a URL, load it in a browser, and enjoy!

License

All original code is released under MIT license. The game UI also uses a free font Akbar-Plain made by Jon Bernhardt.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].