2-APL UPC project.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

playing phase stops when a hand is over to be able to count points

cyberslas c2544956 7545a2cf

+6 -3
+4 -1
code/2apl_platform/briscola_chiamata/notary.2apl
··· 128 128 RemoveTrun(X); 129 129 UpdateTrun(0); 130 130 B( assigned(0, P)); 131 - send(P, inform, yourturn(0)) 131 + //send(P, inform, yourturn(0)) 132 + print("Hands over!") 133 + //TODO count points 132 134 } 133 135 else 134 136 { ··· 141 143 142 144 event(cardPlayed(S, R), cardtable) <- true | 143 145 { 146 + //TODO add card played to can count points 144 147 selectturn() 145 148 }
+2 -2
code/2apl_platform/briscola_chiamata/player.2apl
··· 205 205 // Check if hand is ended 206 206 if B(RES = []) then 207 207 { 208 - endhand() 208 + endround() 209 209 } 210 210 } 211 211 212 - endhand() <- hand([]) | 212 + endround() <- hand([]) | 213 213 { 214 214 print("I don't have any cards!") 215 215 }