Fredster64 / Chess

Making a chess game using C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chess

Making a chess game using modern C++

With this project I have learnt many things. I hope that this will allow me to build my first AI once I finish implementing the rules.

Even with optimisation, the executable for this program is very large, currently standing at 61 KB. However, the whole program has been implemented using 8-bit integers and 64-bit pointers, and so is very resource-light.

I am mainly hoping for speed when this is built, hopefully taking less than a second per move for the computer. If this can be implemented well, I will try the same program in C, without the fancy modern C++ STL objects :)

Things I implemented for the first time in this project:

  • Operator overloading
  • Lambda expression (OMG!)
  • Polymorphism (through virtual functions) and Inheritance (through derived classes)
  • Smart Pointers
  • Header Guards (how did I never notice these?)

Things I have definitely improved on:

  • Pointer Mathematics (only took 4 years)
  • Writing std::
  • Building Classes
  • Converting from int to char and v.v.

About

Making a chess game using C++

License:GNU General Public License v3.0


Languages

Language:C++ 100.0%