GithubHelp home page GithubHelp logo

chess-engine's Introduction

Build: 

javac *.java

Run:

java Driver

Goal: Build chess AI at 1200 ELO level. x = finished

  - Step 1: Correctly program in all chess rules for 2 player chess
x	  - 1a: Figure out if a situation puts player in check
	  - 1b: Figure out if a move is legal
		x - 1ba: Normal moves, no self captures, no moving through pieces except knights, etc.
		x - 1bb: pawns capture diagonally
		  - 1bc: en pessant, castle, pawn promotions
	  - 1c: Win conditions
		x - 1ca: If player has no valid moves
			x - 1caa: If in check, lose game
			x - 1cab: If not in check, tie game
		  - 1cb: 3 move repetition, perpetual checks, 50 move w/ no pawn move.
    
- Step 2: Create evaluation heuristic; this will start pretty simple. 
	- start with standard 'pawn = 1, knight = 3, bishop = 3, rook = 5, queen = 9, king = inf'
	- take into account immediate captures. For instance, a queen trade is not catestrophic, as long as you can capture back.

- Step 3: Use min-max with pruning, to try and find good moves.

- Step 4: Play against it, build real front end.

chess-engine's People

Contributors

peterasteele avatar

Watchers

 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.