Do you mean GO or tic-tack-toe (what the Brits call noughts and crosses or OXO)? If you need to know about borders on a 9x9 board, it sounds more like GO. I've never heard of OXO played on a 9x9 before.
1) Do you mean internal borders or drawn borders
2) Is this on the console only or mouse/touch driven
3) Console graphics or drawn graphics. If drawn, which package
4) Which Fortran Compiler/OS are you using?
5) Which version of Fortran are you using (77, 90, 95, 2003, 2008)?
Someone could tell you how to do this using F2008 classes but if you're using F77, it would be a totally useless answer.
If it is internal borders, you need to have set integer values for border, unoccupied, player1 and player2. These are best declared as integer, parameter. How you use these values is up to you. For instance, if border was a greater value than player2, then to check whether someone could use a square, all you need to do is check for .gt. unoccupied. Alternatively, if you have border less than unoccupied, then you'd have to check for .ne. unoccupied.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.