The 7 colors game

Originally from Anne-Cécile Orgerie and Martin Quinson for a C programming course. Rewritten here in D3js (without AI).

Player 1 :
Player 2 :