resources_for_connectfour
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| resources_for_connectfour [2022/05/10 17:49] – created frchris | resources_for_connectfour [2022/05/10 18:23] (current) – frchris | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| **Connect 4** | **Connect 4** | ||
| + | |||
| + | {{:: | ||
| + | |||
| + | Make a class called '' | ||
| + | - color (use a import java.awt.Color) | ||
| + | - row | ||
| + | - column | ||
| + | |||
| + | A Connect4 Piece is either '' | ||
| + | |||
| + | Make a Constructor with three parameters in the same order listed above | ||
| + | |||
| + | Make the following methods: | ||
| + | - setColor | ||
| + | - getColor | ||
| + | - setRow | ||
| + | - getRow | ||
| + | - setCol | ||
| + | - getCol | ||
| + | - setLocation(int row, int col) | ||
| + | - toString | ||
| + | - equals(Piece other) which returns true if the other Piece is the same Color | ||
| + | |||
| + | Add this class in a Java Project with the following classes: | ||
| + | - {{ :: | ||
| + | - {{ :: | ||
| + | - {{ :: | ||
| + | |||
| + | |||
| + | |||
| + | |||
resources_for_connectfour.1652219368.txt.gz · Last modified: 2022/05/10 17:49 by frchris