Skip to content

Groupe batte man/exo08#103

Open
Nifle-CGE wants to merge 2 commits into
exo08from
groupeBatteMan/exo08
Open

Groupe batte man/exo08#103
Nifle-CGE wants to merge 2 commits into
exo08from
groupeBatteMan/exo08

Conversation

@Nifle-CGE

Copy link
Copy Markdown
Collaborator

No description provided.

const firstColumn = 0;
const secondColumn = 1;
const thirdColumn = 2;
enum Position {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conversion de toutes ces valeurs inutiles en un seul et meme enum

private _board: Board = new Board();

public Play(player: string, x: number, y: number): void {
public Play(player: string, x: Position, y: Position): void {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remplacement de tout les number en Position

class Tile {
private x: number = 0;
private y: number = 0;
private x: Position = Position.First;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Les déclarations sont plus claires

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant