GithubHelp home page GithubHelp logo

othello's Introduction

Reversi (Othello)

Reversi, also known as Othello, is a strategy board game for two players, played on an 8ร—8 uncheckered board. The objective is to have the majority of your color discs on the board at the end of the game.

Game Rules

  1. Starting Position:

    • The game starts with four discs placed in the center of the board in a square formation. The two black discs are placed on one diagonal, and the two white discs are placed on the other diagonal.
  2. Turns:

    • Black always goes first.
    • Players take turns placing a disc of their color on an empty square.
  3. Flipping Discs:

    • When a disc is placed on the board, it must outflank one or more of the opponent's discs.
    • To outflank means to place a disc such that there is a continuous line (horizontal, vertical, or diagonal) of the opponent's discs between the newly placed disc and another disc of the player's color.
    • All of the opponent's discs that are outflanked are flipped to the player's color.
  4. Valid Moves:

    • If a player cannot make a valid move, they must pass their turn.
    • If both players cannot make a valid move, the game ends.
  5. End of the Game:

    • The game ends when neither player can make a valid move, usually when the board is full.
    • The player with the majority of their color discs on the board wins.

Installation

To play the game, clone this repository and build it.

git clone https://github.com/oneHalfA/othello.git
cd othello
make   # or compile it on your own.
./exec

othello's People

Contributors

onehalfa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.