-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tutorial on using Tictactoe #7
Comments
Hi ridho - I just collect the examples, so don't know this code.
That said, to start the game:
swipl tictactoe.pl
?- tictactoe.
Looks like you type in coordinates to play.
From: Ridho Febriansa <[email protected]>
To: Anniepoo/prolog-examples <[email protected]>
Cc: Subscribed <[email protected]>
Sent: Monday, October 22, 2018 4:27 AM
Subject: [Anniepoo/prolog-examples] Tutorial on using Tictactoe (#7)
Hi, my name is Ridho. I want to promote tictactoe using prolog in my class but I know nothing about prolog and about your code. Could anyone help me on what is the first step on running this program till the game end? Thank you in advance.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
wow thanks! Finally I can run the game but after type 'tictactoe.' I don't know how play like playing my turn or enemy turn. Can you help me? |
Here's the relevant code
| moveUser(Board , NewBoard) :- showBoard(Board), put('*'),get_char(Y), get_char(_), name(Y , [X]), |
|
Loc is X - 48, !,procUserMove(Loc,Board,NewBoard).
type in 0 thru 9 to play in that spot.
From: Ridho Febriansa <[email protected]>
To: Anniepoo/prolog-examples <[email protected]>
Cc: Anne Ogborn <[email protected]>; Comment <[email protected]>
Sent: Tuesday, October 23, 2018 12:33 AM
Subject: Re: [Anniepoo/prolog-examples] Tutorial on using Tictactoe (#7)
wow thanks! Finally I can run the game but after type 'tictactoe.' I don't know how play like playing my turn or enemy turn. Can you help me?—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi, this collection is very useful for a beginner like me. Thank you. |
Just PR it |
Instructions for playing - the spaces are numbered 0-9 |
The change is in my fork. What should I do next? |
Fix the issue.
Go to your fork, and on the home page, with
code | Issues | Pull Requests| Actions ...
choose Pull Requests and leave the request setting - describe your fix, and submit it
I'll come along and accept it
Just PR it
This is new to me. I forked and created the following:
vjktm#1 (comment)
The change is in my fork. What should I do next?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Hi Annie, thanks for the guidance. There is one pull request in viktm/prolog-examples. Heading is "Minor fixes to tic-tac-toe. Can you see it? Should I do anything else? E.g., assign to you? |
weirdly, no, I don't see your PR -
Shows as no PR's open.
On Friday, November 4, 2022 at 12:01:08 AM GMT+1, Vp ***@***.***> wrote:
Hi Annie, thanks for the guidance. There is one pull request in viktm/prolog-examples. Heading is "Minor fixes to tic-tac-toe. Can you see it? Should I do anything else? E.g., assign to you?
Thanks for the help.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
See the issue - you filed the PR against yourself. Fie it against anniepoo/prolog-examples. YOU want ME to merge YOUR code.
what you did is
YOU want YOU to merge YOUR code.
On Friday, November 4, 2022 at 12:01:08 AM GMT+1, Vp ***@***.***> wrote:
Hi Annie, thanks for the guidance. There is one pull request in viktm/prolog-examples. Heading is "Minor fixes to tic-tac-toe. Can you see it? Should I do anything else? E.g., assign to you?
Thanks for the help.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
:-( |
Hi, my name is Ridho. I want to promote tictactoe using prolog in my class but I know nothing about prolog and about your code. Could anyone help me on what is the first step on running this program till the game end? Thank you in advance.
The text was updated successfully, but these errors were encountered: