[go: up one dir, main page]

Skip to content

hashraf96/GUI-based-Connect-4-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

GUI-based-Connect-4-game-vs-AI

A GUI based connect 4 game that uses voice as input

The speech recognition works by using two packages, pyaudio and speechRecognition. Pyaudio allows the microphone to be accepted as input, speechRecognition then discerns what the audio input is and a big if chain does the rest. We have to use a button to start the voice recognition so the gui can update.

GUI:

image

Here the GUI is booted up and shows the Connect 4 board. Here the two players decide who is first. When Player 1 is chosen, then they will click the, “Take Turn,” button to start.

image

Here, Player 1 clicked the button and now they will have to say which column they want to place their ‘chip.’

image

Here the user placed their ‘chip’ into column one. After that it will give the prompt for Player 2 to take their turn. This will continue until a player has won, or there is a tie.

image image

Here is a depiction of each player winning, as well as a win for horizontal placement as well as diagonal placement. After there is a winner, or tie, the, “Reset Game,” button will appear for them to reset the game and play again.

Releases

No releases published

Packages

 
 
 

Languages