Giter Club home page Giter Club logo

yadav-sachin / kickout-game-two-player Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 244 KB

Kickout is a new game which I theorized as a two-player game on a 2D board. There are three types of game pieces and the last player to make a move wins the game. Here I used the game-theory concepts to implement a win-predictor for the game. Assuming the player makes sane and logical moves, the predicted winner always wins the game.

CSS 6.34% HTML 38.11% JavaScript 55.55%
game-theory sprauge-grundy win-prediction two-player strategy-game

kickout-game-two-player's Introduction

kickOut Game

Intro and Game Rules

KickOut is a game which I theorised, on a 3D plane. However for simplicity, I have implented it in on 2D board. Some Rules of the Game are as follows

  • The player to delete the last token/piece from the board wins the game.
  • There are three types of pieces:
    • Black: Moves like a Rook in the chess game. Only difference here is that it can move only left or up, to ensure the finite moves in the game.
    • Blue: Moves like a Queen in the chess game. Again only difference here is that it can move only left or up or left-up diagnol.
    • Red: Can move anywhere in the upper-left subarray.
  • Along, with moving a piece, any piece has a possibility of being thrown out (removed) of the board in a move.

File Structure

.
├── css
│   ├── game.css
│   └── index.css
├── html
│   ├── create_game.html
│   └── game.html   # the main game page
├── index.html
├── js
│   ├── create_game.js
│   ├── create_hint.js
│   ├── manage_player_turn.js
│   ├── moving_pieces.js
│   ├── setup_board.js
│   └── win_predictor.js
├── README.md
└── screenshots
    ├── create_game.png
    ├── game1.png
    ├── game2.png
    ├── game3.png
    ├── game4.png
    └── main_menu.png

WinPredictor and Hints

  • The WinPredictor has been implemented based on the game theory concepts. Check out some of the basic theory here at Sprague–Grundy theorem - Wikipedia and Grundy Numbers.
  • The main game logic for win prediction is written in 'win_predictor.js' in js folder.

Screenshots

  • Main Menu

Game Main Menu

  • Create Game

Create Game

  • Game ScreenShots

    Game 1 Game 2 Game 3 Game 4

Multiplayer Online Version:

Really excited to try this game and challenge your friends in online tournaments? Checkout the Multiplayer online version at: Multiplayer Github Repo.

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.