Bombarding / ConnectFur

A simple C++ Game of Connect Four For Ankur Gupta's CS142TA course at Butler University

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bombarding

CS142TA

These programs were built in python for Professor Gupta's CS142 level Introduction to C++ Programming Course at Butler University.

Clone or download repository: https://github.com/Bombarding/GuptaCS142TA.git

Clone or download repository: https://github.com/Bombarding/ConnectFur.git

Github Issues Pending Pull-Requests LicenseLicense: GPL v3

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 

IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

fb_img_1479189403554


Possible Win Condition For Player
/Users/Alex/CLionProjects/ConnectFur/cmake-build-debug/ConnectFur
Welcome to the Connect Four Game
How many players will there be?
Press: 0 For CvC, 1 For PvC, or 2 For PvP
1

What What, in the Butt. Difficulty Please Tron? Yass This In Ping Pong
Press: 1 Fur Easy. 2 Fur Medium. 3 Fur Hard
3

Do you want to go first Mother Fucker?
Press: 0 for No. 1 For Yes
0

*** Game Start! ***

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -


� � � � � � �
0 0 0 0 0 0 0

Computer Player 1 plays in column 4

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- - - X - - -


What column does player 2 want to play?
(1-7, or 0 to Quit)
7

Player 2 plays in column 7

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- - - X - - O


� � � � � � �
� � � � � � �
0 0 0 0 0 0 0

Computer Player 1 plays in column 5

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- - - X X - O


What column does player 2 want to play?
(1-7, or 0 to Quit)
3

Player 2 plays in column 3

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- - O X X - O


� � � � � � �
� � � � � � �
0 0 0 0 0 0 0

Computer Player 1 plays in column 2

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- X O X X - O


What column does player 2 want to play?
(1-7, or 0 to Quit)
3

Player 2 plays in column 3

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- - O - - - -
- X O X X - O


� � � � � � �
� � � � � � �
0 0 0 0 0 0 0

Computer Player 1 plays in column 7

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- - O - - - X
- X O X X - O


What column does player 2 want to play?
(1-7, or 0 to Quit)
6

Player 2 plays in column 6

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- - O - - - X
- X O X X O O


� � � � � � �
� � � � � � �
0 0 0 0 0 0 0

Computer Player 1 plays in column 1

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- - O - - - X
X X O X X O O


What column does player 2 want to play?
(1-7, or 0 to Quit)
5

Player 2 plays in column 5

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- - O - O - X
X X O X X O O


� � � � � � �
� � � � � � �
0 0 0 0 0 0 0

Computer Player 1 plays in column 2

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
- - - - - - -
- X O - O - X
X X O X X O O


What column does player 2 want to play?
(1-7, or 0 to Quit)
2

Player 2 plays in column 2

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
- O - - - - -
- X O - O - X
X X O X X O O


� � � � � � �
� � � � � � �
0 0 0 0 0 0 0

Computer Player 1 plays in column 4

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
- O - - - - -
- X O X O - X
X X O X X O O


What column does player 2 want to play?
(1-7, or 0 to Quit)
4

Player 2 plays in column 4

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
- O - O - - -
- X O X O - X
X X O X X O O


� � � � � � �
� � � � � � �
0 0 0 0 0 0 0

Computer Player 1 plays in column 1

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
- O - O - - -
X X O X O - X
X X O X X O O


What column does player 2 want to play?
(1-7, or 0 to Quit)
1

Player 2 plays in column 1

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
O O - O - - -
X X O X O - X
X X O X X O O


� � � � � � �
0 0 0 0 0 0 0

Computer Player 1 plays in column 3

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - - - - - -
O O X O - - -
X X O X O - X
X X O X X O O


What column does player 2 want to play?
(1-7, or 0 to Quit)
3

Player 2 plays in column 3

1 2 3 4 5 6 7

- - - - - - -
- - - - - - -
- - O - - - -
O O X O - - -
X X O X O - X
X X O X X O O



Player 2 wins!

main.cpp:344:10: warning: expression result unused [-Wunused-value]
    for (Scarface; Scarface<Darkness; Scarface++) //Check Each Column
         ^~~~~~~~
main.cpp:371:10: warning: expression result unused [-Wunused-value]
    for (Scarface; Scarface<Darkness; Scarface++) //Check Each Column
         ^~~~~~~~
2 warnings generated.


About

A simple C++ Game of Connect Four For Ankur Gupta's CS142TA course at Butler University


Languages

Language:C++ 48.4%Language:CMake 22.1%Language:C 18.4%Language:Makefile 11.1%