USA Java Newbie
asked on
Tic Tac Toe Java checking for a win
My method for checking for a horizontal win is not working any help is greatful
MainFile.java
ConnectFourGame.java
MainFile.java
ConnectFourGame.java
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
The other problem is that the array that you call "f" contains characters like R, Y, , |, _ but in your checkWins method you are comparing them to ints such as RED and BLACK.