[FreeToTake] generated piece should get a random rotation #49
Labels
No Label
Important
Moins important
Pas important
bug
done
duplicate
enhancement
help wanted
invalid
question
suppléments
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: undefined_name/School_Project#49
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently the generated piece get no rotation. so the game would be done without ever rotating any pieces
we should just get a random rotation between 0 and 3 to each pieces for some randomness
i m on it !
need some help cause i can't use call rotateRight
how? you should do
myiece.rotateRight(int)
boolean[][] turnPiece = shape;
turnPiece.Piece.RotateRight(rand);
ret.addPiece(new Piece(turnPiece));
that's what i'm trying to do
turnPiece c'est un boolean[][] il n'y a pas de methode Piece ^^
et surtout je ne pense pas que tu ai besoin de passer par un nouveau boolean[][]
tu dois juste prendre la piece déjà générée, puis faire un RotateRight(rand.nextInt(4));
genre
#83