BKMbigo / solitaire-compose

A simple solitaire card game
https://bkmbigo.github.io/solitaire-compose/
11 stars 0 forks source link

Refactor the move dsl to include possibility of additional games #15

Closed BKMbigo closed 10 months ago

BKMbigo commented 11 months ago

The current iteration of making game moves involves a dsl method Card move MoveSource to MoveDestination, for example, ACE of HEARTS from FromFoundation to TableStackEntry.ONE. The dsl automatically assumes that the move is a SolitaireGameMove(Klondike). The issue can be resolved by introducing the context of the game, for example, ACE of HEARTS moveIn Klondike from FromFoundation to TableStackEntry.ONE