I started programming my chess game last night in Ruby – a popular programming language.
Ruby is an object-oriented scripting language that has sky-rocketed in popularity during the last year. I started learning Ruby back in December.
It looks like a good choice for prototyping a chess game in quickly.
Chess demands high-performance and extremely efficient use of memory. Ruby is not exactly intended for that, so in order to make it a very practical chess program, I shall have to port it to another language like C++.
So far, I have created the skeleton of the game. Classes now exist for:
- board
- pieces
- players (human, computer)
Move generation is fundamental to creating a board game. I will probably implement that using continuations. Slow in Ruby – but very simple way to program a generator.
