Coder Social home page Coder Social logo

hexapawn's Introduction

Welcome to hexapawn ๐Ÿ‘‹

GitHub issues GitHub forks Contributor Covenant GitHub license

hexapawn_banner_2

What is Hexpawn?

Hexapawn is a simple two-player board game which has it's origins in chess and was developed by Martin Gardner in 1962. It is played on a mere 3x3 rectangular board and, as the name implies, all the pieces on the board are exclusively pawns.

Unlike chess, the board size can vary, as well as the amount of pawns (proportional to the board size). The game was initially constructed in order to demonstrate how it could be played by a heuristic AI implemented by a mechanical computer based on Donald Michie's Matchbox Educable Noughts and Crosses Engine (a computer made out of matchboxes).

image

How to play Hexapawn

On a board size n*m, each player begins with m pawns, one for each square in the row closest to them. The goal of each player is to advance one of their pawns to the opposite end of the board or to prevent the other player from moving.

Rules

Just like in chess, each pawn may be moved in two different ways:

  1. One Square forward
  2. One Square diagonally to capture a other pawn

A pawn may not be moved forward if there is a pawn in the next square. Contrary to chess, the first move of a pawn may not advance it by two spaces. A player loses if they have no legal moves or the other player reaches the end of the board with a pawn. Since each pawn can only move forward, there is no need for a draw by repetition rule.

Variants

As the board size is extendible, the rules can also be naturally extended to larger boards. Additionally, the pawns can be replaced by Berolina pawns or Berolina Plus pawns.

Setup

Fork the hexapawn repository to your GitHub Account.

Then, run:

Setup guide needs to be added

Prerequisites

Usage - Running hexapawn

Section needs to be added

How it works

Section needs to be added

FAQ

Need help?

Text needs to be added

Want to report a bug or suggest an Enhancement?

Text needs to be added

๐Ÿ‘‰ For more information on how to contribute, please read through our CONTRIBUTING.md!

Want to Contribute?

Check out our Issues with the good first issue and help wanted label. We suggest also looking at the closed ones to get a sense of what your issue and/or PR should look like.

๐Ÿ‘‰ For more information on how to contribute, please read through our CONTRIBUTING.md!

Code of Conduct

Missing Text

Contributor Covenant

Author

๐Ÿ‘ค LrnzDC3696

Ressources

License

hexapawn is free and open source software distributed under the terms of the GNU License.

hexapawn's People

Contributors

constantinosgeorgiou avatar cpaul777 avatar fabestah avatar lrnzdc3696 avatar

Watchers

 avatar

hexapawn's Issues

Add Contributor Covenant Code of Conduct

Add a CODE_OF_CONDUCT.md, which represents the values of this project, makes clear that everybody in the community gets treated with respect and that the participation in our community will always be a harassment-free experience for everyone.

Please add frontend

Please add some way to visually see what's happening. Maybe Tkinter here or Kivy.

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.