-
Notifications
You must be signed in to change notification settings - Fork 1
Dinamic window pattern card
Information about pattern cards can be gathered throught file. Pattern cards go in pairs, each of them carry information about constraints the user has to respect in a particular position of the player board, a name and a natural positive number that we would refer to as difficulty, that resemble a number of favours a player should be given in a multiplayer game.
We decided to use a simple encoding to represent a pattern card
<name>\r\n
<number of favour> <width> <height> <encoding of costraint #1,...,encoding#width*height>\r\n
Every constraint would be represented by a pair of characters a number, between 1 and 6, and a letter that should identify the colour {W=> WHITE, G=> Green, Y=>Yellow, R=> Red, V => Violet, B=>Blue}.
white test 0 4 5 0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W other white test 0 4 5 0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W
Progetto di ingegneria del software (SWENG for friends)