Jump to content

Prolog question: table

- - - - -

  • Please log in to reply
No replies to this topic

#1
alx9

alx9

    Newbie

  • Members
  • Pip
  • 1 posts
Hi, is there a 'standard' way to create a table in prolog?

I need to make a representation of a 4-in-a-row game and need to show a 7 by 7 board.
At the moment I'm thinking of just using writef and lots of spaces to manually do every row, but I seriously doubt this is the most efficient way to do this. It'd be great if it could recognize coordinates...

Hope someone can help me,

Alex




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users