I've tried to isolated several parts but I can't find what is causing the slowness.
It would be really cool to have a screen which could monitor every process in love and track down which one is the most CPU heavy so we could optimise games more easily.
The rules (taken from the DOS game dragon sphere) :
There are 4 different colors in this game: red, yellow, green and purple.
In a pouch lie 12 gems of each color. You can get point by having good guesses.
The winner is the first to reach 16.
You have to choose one color, and compare it with the gem which will be taken out of this bag:
- if you choose red, you get 1 point and can play again if the gem is red, yellow or green. If the gem is purple, end of your turn.
- if you choose yellow, you get 2 points and can play again if the gem is yellow or green. If the gem is red or purple, end of your turn.
- if you choose green, you get 5 points and can play again if the gem is green. If the gem is not green, end of your turn.
- if you choose purple, you get 12 points and can play again if the gem is purple. If the gem is not purple, your opponent get 2 points (but can't win even if the score is 16), and it's the end of your turn.
It's not yet possible to play against computer or win the game...