Giter VIP home page Giter VIP logo

othello's Introduction

Othello

The board game Othello built in JavaFX.

How to Play

Basic rules for the game are as follows:

  • Player's toss a coin to decide who will play white - white moves first. Each turn, the player places one piece on the board with their colour facing up.

  • For the first four moves, the players must play to one of the four squares in the middle of the board and no pieces are captured or reversed.

  • Each piece played must be laid adjacent to an opponent's piece so that the opponent's piece or a row of opponent's pieces is flanked by the new piece and another piece of the player's colour. All of the opponent's pieces between these two pieces are 'captured' and turned over to match the player's colour.

  • It can happen that a piece is played so that pieces or rows of pieces in more than one direction are trapped between the new piece played and other pieces of the same colour. In this case, all the pieces in all viable directions are turned over.

  • The game is over when neither player has a legal move (i.e. a move that captures at least one opposing piece) or when the board is full.

Game Image

Getting Started

How to Install

Clone the repository to your local machine using Github's built-in features or on the command-line using git clone <repository-URL>.

How to Run

  • Using IntelliJ as your IDE, import the project.
  • Once the project is open, go to File > Project Structure > Libraries > + and navigate to your local JavaFX lib file to add it to the project.
  • Open the project configuration menu located at the top right of the IDE and select Edit Configuration.
  • Add --module-path ${PATH_TO_FX} --add-modules javafx.controls,javafx.fxml to the VM Options if it is not added already (it should be).
  • Choose the Othello [run] configuration and press Run to see the program.

Please contact one of the contributors if you have any issues!

othello's People

Contributors

aaronwoodhouse avatar drwheelicus avatar jayson-s avatar

Watchers

 avatar

othello's Issues

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.