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?
My_1
0
Light Poster
Recommended Answers
Jump to PostWithout 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 %ps
All 3 Replies
My_1
0
Light Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
My_1
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.