I got everything until to the point that check if the space is emprty or not. I dont know how to do it. can someone give me an example?
Jump to Post
Without knowing how your program and its data are structured, it's almost impossible to answer that question. What's the "switch" you refer to?
Anyway, converting an int 1-9 into row/col values is just simple arithmetic. You need the divide operator / and the remainder operator %
All 3 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.