Code Monkey home page Code Monkey logo

realspal / othellogame Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 67 KB

Othello PvP (2-Player) Game Application created in Java using Swing and AWT, for playing the Othello game, a simple game that played on an 8 by 8 checkered board with 64 double-sided black and white discs. The game is easy to learn, but it takes time to master and develop winning strategies.

License: MIT License

Java 100.00%
game java java-swing java-swing-game java-swing-application othello othello-game

othellogame's Introduction

OthelloGame

Othello PvP (2-Player) Game Application. This repository contains a Windows application, created in Java using Swing and AWT, for playing the Othello game, a simple game that played on an 8 by 8 checkered board with 64 double-sided black and white discs. The game is easy to learn, but it takes time to master and develop winning strategies.


Screenshot from the Application:

Screenshot-Othello-Game


OTHELLO PVP - Java Application for Windows PC

Game Application : Developed by Soumyadeep Pal

Developer GitHub : https://www.github.com/realspal

Developer LinkedIn : https://linkedin.com/in/realspal

Game Rules : Based on the original Othello Game


About This Repository:

This repository contains a Windows application for playing the Othello game in 2 player (player vs player or PvP) mode, created in Java using Swing and AWT. This version is capable of invalidating illegal moves and declaring winner automatically.


About The Game Othello (Source - https://www.wikihow.com/Play-Othello):

Othello is a simple game that you play on an 8 by 8 in (20 by 20 cm) checkered board with 64 double-sided black and white discs. The game is easy to learn, but it takes time to master and develop your strategies for winning the game.


Rules Of The Game (Source - https://www.eothello.com/#how-to-play):

Othello is a strategy board game for two players (Black and White), played on an 8 by 8 board. The game traditionally begins with four discs placed in the middle of the board as shown below. Black moves first.

image

Black must place a black disc on the board, in such a way that there is at least one straight (horizontal, vertical, or diagonal) occupied line between the new disc and another black disc, with one or more contiguous white pieces between them. In the starting position, Black has the following 4 options indicated by translucent discs:

image

After placing the disc, Black flips all white discs lying on a straight line between the new disc and any existing black discs. All flipped discs are now black. If Black decides to place a disc in the topmost location, one white disc gets flipped, and the board now looks like this:

image

Now White plays. This player operates under the same rules, with the roles reversed: White lays down a white disc, causing black discs to flip. Possibilities at this time would be:

image

If White plays the bottom left option and flips one disc:

image

Players alternate taking turns. If a player does not have any valid moves, play passes back to the other player. When neither player can move, the game ends. A game of Othello may end before the board is completely filled.

The player with the most discs on the board at the end of the game wins. If both players have the same number of discs, then the game is a draw.


Message From Developer (Date: 2nd February, 2022):

I hope you will have fun playing Othello and devising your own strategies. For more information, you can contact me via LinkedIn (https://www.linkedin.com/in/realspal). Thanks for reading. With regards,

Soumyadeep Pal.


  1. Basic Othello Strategy - https://www.eothello.com
  2. World Othello Federation - https://www.worldothello.org
  3. Othello: a minute to learn... a lifetime to master by Brian Rose - https://www.eothello.com/pdf/othello-book-Brian-Rose.pdf

othellogame's People

Contributors

realspal avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

kreimben

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.