Merge
This commit is contained in:
BIN
out/artifacts/Four_In_A_Row/Four-In-A-Row.jar
Normal file
BIN
out/artifacts/Four_In_A_Row/Four-In-A-Row.jar
Normal file
Binary file not shown.
BIN
out/artifacts/Four_In_A_Row/Four-In-A-Row.zip
Normal file
BIN
out/artifacts/Four_In_A_Row/Four-In-A-Row.zip
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/Main$1.class
Normal file
BIN
out/production/Four-In-A-Row/Main$1.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/Main$Gamemode.class
Normal file
BIN
out/production/Four-In-A-Row/Main$Gamemode.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/Main.class
Normal file
BIN
out/production/Four-In-A-Row/Main.class
Normal file
Binary file not shown.
70
out/production/Four-In-A-Row/Plan.txt
Normal file
70
out/production/Four-In-A-Row/Plan.txt
Normal file
@ -0,0 +1,70 @@
|
||||
Two dimensional array.
|
||||
Render each subarray from bottom to top.
|
||||
Place each piece in the start of the array.
|
||||
|
||||
Let user choose from a button above each row where to place a chip.
|
||||
|
||||
Keep count of player names and colors, maybe with some text input.
|
||||
objects.Player has name and color.
|
||||
|
||||
Turn + Events
|
||||
|
||||
Width = 7, Height = 6
|
||||
|
||||
Check from each block of a color (maybe keep track of blocked pieces for effectiveness).
|
||||
Maybe allow for custom combinations required to win.
|
||||
|
||||
Game
|
||||
- Winning Conditions
|
||||
- board.Board
|
||||
- GameObjects
|
||||
- Random events
|
||||
- Input/Output
|
||||
- Players
|
||||
|
||||
Players
|
||||
Class with info about player <- passive
|
||||
- name
|
||||
- color (of token)
|
||||
|
||||
Interface for a player's actions <- active
|
||||
- Methods for throwing token into column.
|
||||
- +Info
|
||||
|
||||
Input/Output
|
||||
- Input interface
|
||||
* int getNextColumn(objects.Player p); //Retrieve user input
|
||||
- Output interface
|
||||
* void displayBoard(board.IBoard b);
|
||||
* void displayMessage(String s);
|
||||
|
||||
Random Events
|
||||
- Interface events.IRandomEvent
|
||||
* void act(board.IBoard b);
|
||||
* String announcement();
|
||||
|
||||
events.IRandomEvent
|
||||
Abstract events.RandomEvent implements events.IRandomEvent (void flipCoin // Does something if heads)
|
||||
Shuffle extends events.RandomEvent
|
||||
|
||||
objects.GameObject
|
||||
objects.Token
|
||||
Owner instanceof objects.Player
|
||||
|
||||
GameObjects(objects.Token, empty)
|
||||
* One class
|
||||
* getColor();
|
||||
|
||||
Winning Conditions
|
||||
- Interface events.IWinCondition
|
||||
* boolean hasWon(objects.Player p, board.IBoard board);
|
||||
|
||||
|
||||
"Main" method (Game)
|
||||
- Outer loop: "While the game has not been finished"
|
||||
1) Determine who's turn
|
||||
2) Get next input: int j = input.getNextColumn(p);
|
||||
3) Execute move: p throws in column j.
|
||||
4) Check if p has won.
|
||||
5) Update view (output.displayBoard())
|
||||
6) events.RandomEvent.act();
|
BIN
out/production/Four-In-A-Row/board/Board.class
Normal file
BIN
out/production/Four-In-A-Row/board/Board.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/board/Grid.class
Normal file
BIN
out/production/Four-In-A-Row/board/Grid.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/board/IBoard.class
Normal file
BIN
out/production/Four-In-A-Row/board/IBoard.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/board/IGrid.class
Normal file
BIN
out/production/Four-In-A-Row/board/IGrid.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/events/Block.class
Normal file
BIN
out/production/Four-In-A-Row/events/Block.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/events/Bomb.class
Normal file
BIN
out/production/Four-In-A-Row/events/Bomb.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/events/FourInARow.class
Normal file
BIN
out/production/Four-In-A-Row/events/FourInARow.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/events/IRandomEvent.class
Normal file
BIN
out/production/Four-In-A-Row/events/IRandomEvent.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/events/IWinCondition.class
Normal file
BIN
out/production/Four-In-A-Row/events/IWinCondition.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/events/InARow.class
Normal file
BIN
out/production/Four-In-A-Row/events/InARow.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/events/RandomEvent.class
Normal file
BIN
out/production/Four-In-A-Row/events/RandomEvent.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/events/ThreeInARow.class
Normal file
BIN
out/production/Four-In-A-Row/events/ThreeInARow.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/interfaces/FourInARowGUI$1.class
Normal file
BIN
out/production/Four-In-A-Row/interfaces/FourInARowGUI$1.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/interfaces/FourInARowGUI.class
Normal file
BIN
out/production/Four-In-A-Row/interfaces/FourInARowGUI.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/interfaces/GUI.class
Normal file
BIN
out/production/Four-In-A-Row/interfaces/GUI.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/interfaces/IGameInterface.class
Normal file
BIN
out/production/Four-In-A-Row/interfaces/IGameInterface.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/interfaces/NInARowGUI$1.class
Normal file
BIN
out/production/Four-In-A-Row/interfaces/NInARowGUI$1.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/interfaces/NInARowGUI.class
Normal file
BIN
out/production/Four-In-A-Row/interfaces/NInARowGUI.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/interfaces/TicTacToeGUI$1.class
Normal file
BIN
out/production/Four-In-A-Row/interfaces/TicTacToeGUI$1.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/interfaces/TicTacToeGUI.class
Normal file
BIN
out/production/Four-In-A-Row/interfaces/TicTacToeGUI.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/objects/Empty.class
Normal file
BIN
out/production/Four-In-A-Row/objects/Empty.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/objects/GameObject.class
Normal file
BIN
out/production/Four-In-A-Row/objects/GameObject.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/objects/Immovable.class
Normal file
BIN
out/production/Four-In-A-Row/objects/Immovable.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/objects/Player.class
Normal file
BIN
out/production/Four-In-A-Row/objects/Player.class
Normal file
Binary file not shown.
BIN
out/production/Four-In-A-Row/objects/Token.class
Normal file
BIN
out/production/Four-In-A-Row/objects/Token.class
Normal file
Binary file not shown.
BIN
out/test/Four-In-A-Row/FourInARowTest.class
Normal file
BIN
out/test/Four-In-A-Row/FourInARowTest.class
Normal file
Binary file not shown.
BIN
out/test/Four-In-A-Row/GridTest.class
Normal file
BIN
out/test/Four-In-A-Row/GridTest.class
Normal file
Binary file not shown.
BIN
out/test/Four-In-A-Row/TicTacToeTest.class
Normal file
BIN
out/test/Four-In-A-Row/TicTacToeTest.class
Normal file
Binary file not shown.
Reference in New Issue
Block a user