2nd Input -> L1 Trick (TB not allowed)
3rd Input:
if TB->L2 trick
else->L3 trick
4th Input:
if lastTrick was L2{
if TB->L1 trick with the not used input
else->L3 trick
}else (lastTrick was L3){
if TB->L2 trick removing the oldest input of the last L3 trick
else->L3 trick removing the oldest input of the last L3 trick
}
Instead of basing the system in inputs, it´s better to base it in trick levels:
- Direction = L1 trick X
- L1+Direction = L1 if tricks.Count == 1 X
- L1+Direction = L3 if tricks.Count>1.
- L1+TB = L2 if tricks.Count > 1
- L2+Direction = L3
- L2+TB = L1 with unused input->Resets trick chain completely
- L3+Direction = L3 removing oldest input
- L3+TB = L2 removing oldest input
trickInputs = To keep track of inputs
trickLevels = To keep track of trick levels
Maximum size will be 2, so every time a new trick is performed all the lists are shifted one position and the data of the oldest trick is deleted.
No hay comentarios:
Publicar un comentario