Giter Site home page Giter Site logo

othello-game-project's Introduction

Othello-Game-Project

Introduction

This project implements the classic Othello game in either Prolog or Python, adhering to specific guidelines and requirements for implementation and gameplay.

Project Requirements

  • Game Mode: Human vs. Computer mode and Human vs Human.
  • Algorithm: Utilize alpha-beta pruning algorithm for computer moves.
  • Game Features:
    • Game controller to manage player roles, moves, and game state.
    • Proper knowledge representation of the game state.
    • Utility function for evaluating game states.
    • Implementation of alpha-beta pruning algorithm.
    • Support for different difficulty levels (Easy, Medium, Hard) based on algorithm depth.

Game Overview

Othello is a strategy board game played on an 8ร—8 board where players compete to capture the opponent's pieces by outflanking them with their own pieces.

Game Setup

  • Initially, the board is set up with two black and two white disks in the center.
  • Each player starts with 30 disks of their color.

How to Play

  1. Black makes the first move.
  2. Players take turns placing their disks on empty squares adjacent to opponent's pieces to outflank and capture them.
  3. Captured disks are flipped to the capturing player's color.
  4. Game ends when no more moves are possible or when a player runs out of disks.
  5. The player with more disks of their color wins.

Game Rules

  • Black always moves first.
  • Missing a turn occurs if no disks can be outflanked.
  • Disks can outflank multiple opponent's disks in a straight line.
  • Players cannot skip over their own disks to outflank opponents.

othello-game-project's People

Contributors

roaaemadeldin avatar ranaimara22 avatar abdelrhmanreda17 avatar abdoman19 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.