This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Game Development and the fly likes Count a players wins in Connect four Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "Count a players wins in Connect four" Watch "Count a players wins in Connect four" New topic
Author

Count a players wins in Connect four

Ollie Dee
Greenhorn

Joined: Jan 06, 2013
Posts: 10

Hi, could anyone show me how to write something to keep count of a players score, below is the code to display when either red wins or black wins, any ideas how I could add it to this code. Thanks

fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11653
    
  18

Just posting "it doesn't work" doesn't really allow us to help you. We even have a couple of FAQs on that very topic (click each):

ItDoesntWorkIsUseless
TellTheDetails.

Please read those and come back with more info. Remember - the best way to get help is to make it as easy as possible for someone to help you.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
Consider Paul's rocket mass heater.
 
subject: Count a players wins in Connect four