-
Notifications
You must be signed in to change notification settings - Fork 1
Dinamic window pattern card
Information about window pattern cards can be gathered throught file. Since a card has always a front and a back view, window patterns must be declared in pairs. A window pattern contains information about constraints the user has to respect during die placement, a name and a natural positive number, also called as difficulty, that resemble a number of favours a player should be given in a multiplayer game. The goal was to provide a naive mechanism that could endorse new window pattern cards.
First line of the file should express the number of window pattern cards that can be read.
We decided to use a simple encoding to represent a single pattern card
<name that can contain spaces>
<number of favour> <width> <height> <costraint #1, ... ,constraint#width*height>
We chose to represent every constraint using a pair of characters which express respectively a value and a color restriction:
- The first must be a number, between 1 and 6;
- the second identifies the colour {W=> WHITE, G=> Green, Y=>Yellow, R=> Red, V => Violet, B=>Blue} . E.g. 1W => indicates that during ordinary die placement procedures only die that has value '1' should be accepted; 0B => indicates that during ordinary die placement procedures only die that of colour BLUE should be accepted.
Both these 4x5 window pattern cards does not pose any restriction on die placement
white test
0 4 5 0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W
other white test
0 4 5 0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W
12 <- Number of Couples to read
Kaleidoscopic Dream
4 4 5 0Y0B0W0W1W0G0W5W0W4W3W0W0R0W0G2W0W0W0B0Y
Virtus
5 4 5 4W0W2W5W0G0W0W6W0G2W0W3W0G4W0W5W0G1W0W0W
Aurorae Magnificus
5 4 5 5W0G0B0V2W0V0W0W0W0Y0Y0W6W0W0V1W0W0W0G4W
Via Lux
4 4 5 0Y0W6W0W0W0W1W5W0W2W3W0Y0R0V0W0W0W4W3W0R
Bellesguard
3 4 5 0B6W0W0W0Y0W3W0B0W0W0W5W6W2W0W0W4W0W1W0G
Sun Catcher
3 4 5 0W0B2W0W0Y0W4W0W0R0W0W0W5W0Y0W0G3W0W0W0V
Firmitas
5 4 5 0V6W0W0W3W5W0V3W0W0W0W2W0V1W0W0W1W5W0V4W
Symphony Of Light
6 4 5 2W0W5W0W1W0Y6W0V2W0R0W0B4W0G0W0W3W0W5W0W
Aurora Sagradis
4 4 5 0R0W0B0W0Y4W0V3W0G2W0W1W0W5W0W0W0W6W0W0W
Industria
5 4 5 1W0R3W0W6W5W4W0R2W0W0W0W5W0R1W0W0W0W3W0R
Batllo
5 4 5 0W0W6W0W0W0W5W0B4W0W3W0G0Y0V2W1W4W0R5W3W
Shadow Thief
5 4 5 6W0V0W0W5W5W0W0V0W0W0R6W0W0V0W0Y0R5W4W3W
Fractal Drops
3 4 5 0W4W0W0Y6W0R0W2W0W0W0W0W0R0V1W0B0Y0W0W0W
Gravitas
5 4 5 1W0W3W0B0W0W2W0B0W0W6W0B0W4W0W0B5W2W0W1W
Chromatic Splendor
4 4 5 0W0W0G0W0W2W0Y5W0B1W0W0R3W0V0W1W0W6W0W4W
Lux Astram
5 4 5 0W1W0G0V4W6W0V2W5W0G1W0G5W3W0V0W0W0W0W0W
Firelight
5 4 5 3W4W1W5W0W0W6W2W0W0Y0W0W0W0Y0R5W0W0Y0R6W
Luz Celestial
3 4 5 0W0W0R5W0W0V4W0W0G3W6W0W0W0B0W0W0Y2W0W0W
Ripples Of Light
5 4 5 0W0W0W0R5W0W0W0V4W0B0W0B3W0Y6W0Y2W0G1W0R
Water Of Life
6 4 5 6W0B0W0W1W0W5W0B0W0W4W0R2W0B0W0G6W0Y3W0V
Comitas
5 4 5 0Y0W2W0W6W0W4W0W5W0Y0W0W0W0Y5W1W2W0Y3W0W
Lux Mundi
6 4 5 0W0W1W0W0W1W0G3W0B2W0B5W4W6W0G0W0B5W0G0W
Fulgor Del Cielo
5 4 5 0W0B0R0W0W0W4W5W0W0B0B2W0W0R5W6W0R3W1W0W
Sun's Glory
6 4 5 1W0V0Y0W4W0V0Y0W0W6W0Y0W0W5W3W0W5W4W2W1W
Progetto di ingegneria del software (SWENG for friends)