Skip to content

Terminal application that allows users to play the Othello board game in both single-player and multiplayer modes. Features four AI difficulty levels, an in-game history mode to revert to previous game states, and move validation. Developed in the functional programming language OCaml with unit tests using the OUnit framework.

Notifications You must be signed in to change notification settings

om-deshmukh-dev/Othello

Repository files navigation

A terminal-based implementation of the classic board game Othello, built with OCaml.

Setup

Refer to INSTALL.txt for installation instructions

Gameplay

Refer to this page for the rules of Othello: https://www.worldothello.org/about/about-othello/othello-rules/official-rules/english

  1. Type command "make othello" to start the othello game

  2. Next, for a singleplayer game, type 's [easy | medium | hard | godmode]' to select an easy, medium, hard, or extreme opponent. For multiplayer, type 'm'. You can also type 'q' to quit, and 'h' for help.

         Example: 's medium'
    
  3. If playing against a computer, choose a color. You may respond 'b' for black and 'w' for white. Otherwise, the game automatically starts with black, and one player can choose to start the game.

  4. Congrats! You started the game! You can enter moves as (letter, number). Example 'f 5'. The board is printed as a grid. The empty spaces are empty. The black tiles are the circles with black in the center. The white tiles are circles with white in the center. The range of values for row is 1 <= row <= 8 and column is A <= column <= H.

  5. If you are playing in mutiplayer mode, you can enter moves for each color one after the other. If you are playing in singleplayer, after you enter the first move, the computer will play its own move and you can enter your next move.

  6. Type 'history' at any point in a current game to enter history mode, where you can choose a previous point in the game to return to.

  7. Type 'q' at any point to quit the game. Type 'h' at any point to list all available commands.

  8. When finished, run dune clean in terminal.

About

Terminal application that allows users to play the Othello board game in both single-player and multiplayer modes. Features four AI difficulty levels, an in-game history mode to revert to previous game states, and move validation. Developed in the functional programming language OCaml with unit tests using the OUnit framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages