Giter Site home page Giter Site logo

chess's Introduction

Chess

The game of chess.. actually nothing yet.

Todo

  1. save state
  2. game manager (turn and messages)
  3. ai algorithm

AI notes

  • DANGER move puts piece in danger (-2)
  • COST move captures a lower valued piece (-1)
  • PROTECTION move provides protection (+2)
  • COST+PROTECTION Captures lower piece, but provides protection (+3)
  • HIGH VALUE - High value pieces like Queen and King take less risks
  • IN DANGER - is the piece currently in danger and if so, what is the value of that piece

Resources

Todo

  • RULES

    • Need to account for being in "check"
    • Need to determine winner if checkmate
  • AI

    • Create algorithm to calculate "strength" of each possible move

      • DANGE move puts piece in danger (-2)
      • COST move captures a lower valued piece (-1)
      • PROTECTION move provides protection (+2)
      • COST+PROTECTION Captures lower piece, but provides protection (+3)
      • HIGH VALUE - High value pieces like Queen and King take less risks
      • IN DANGER - is the piece currently in danger and if so, what is the value of that piece
    • Tell computer to make move base on score

  • visual: use pieces variable to display the board and provide an interface

    • this ui can interact with Chess to modify the state and update the ui
  • chess: inner workings of Chess

    • what pieces are on the board and where
    • possible moves
    • state of board
  • ai: how the computer uses knowledge of board to make decisions

    • interacts with board state
    • calculate best move based on state and history

chess's People

Contributors

rbk avatar

Stargazers

 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.