This repository was archived by the owner on Apr 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCXCell.java
More file actions
55 lines (51 loc) · 1.26 KB
/
Copy pathCXCell.java
File metadata and controls
55 lines (51 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* Copyright (C) 2022 Lamberto Colazzo
*
* This file is part of the ConnectX software developed for the
* Intern ship of the course "Information technology", University of Bologna
* A.Y. 2021-2022.
*
* ConnectX is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details; see <https://www.gnu.org/licenses/>.
*/
package connectx;
/**
* Describes the state of a cell in the <code>CXBoard</code>.
*
* @see CXBoard CXBoard
*/
public class CXCell {
/**
* Cell row index
*/
public final int i;
/**
* Cell column index
*/
public final int j;
/**
* Cell state
*/
public final CXCellState state;
/**
* Allocates a cell
*
* @param i cell row index
*
* @param j cell column index
*
* @param state cell state
*/
public CXCell(int i, int j, CXCellState state) {
this.i = i;
this.j = j;
this.state = state;
}
}