Index
All Classes and Interfaces|All Packages
B
- board - Static variable in class TwoDArraysMain
-
Our Connect4 board, which has 6 rows and 7 columns.
C
- checkForWin(int[][]) - Method in class TwoDArraysUtility
-
This method will be run after each placement of a piece.
G
- gameLoop() - Static method in class TwoDArraysMain
-
Method that contains a loop to run until victory is achieved or until a player desires to exit the game.
M
- main(String[]) - Static method in class TwoDArraysMain
-
The main function to begin program execution.
P
- play(int, int, int[][]) - Method in class TwoDArraysUtility
-
This method takes three parameters and uses them to play a piece on the Connect4 board.
- playerChoice(int, Scanner, int[][], TwoDArraysUtility) - Static method in class TwoDArraysMain
-
This method is where the player chooses the column to play their piece in, it also checks that the input it 1-7 and if input is 0, the game is exited.
- printBoard() - Static method in class TwoDArraysMain
-
This method prints the entire board 2D Array and some additional lines below for added readability.
S
- setBoard() - Static method in class TwoDArraysMain
-
This method sets the entire board to 0 values.
T
- TwoDArraysMain - Class in Unnamed Package
-
The driver class for this app.
- TwoDArraysMain() - Constructor for class TwoDArraysMain
- TwoDArraysUtility - Class in Unnamed Package
-
Contains our two utility functions for this Connect4 app, play() and checkForWin().
- TwoDArraysUtility() - Constructor for class TwoDArraysUtility
All Classes and Interfaces|All Packages