-
Notifications
You must be signed in to change notification settings - Fork 1
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
A GGP game #8
Comments
Hey, Sure I will definitely try. Just have couple of doubts (I tried to google this game but didn't find it so couldn't find the answers I was looking for.)
|
hi,thank you for reply
|
Okay I have understood following things confirm if they are right...
B B B B B
Sorry for the inconvenience but I am little bit confused about how the dogs are killed... Tell me if my understanding is correct and if there are more cases add them. |
It`s amazing! |
Ahh yes... I meant the same scenario in tiger lose. I forgot that the markdown nullifies the blacks. :P I will try writing the game in GDL with given knowledge... |
OK! |
(role Tiger) ( <= (base (piece ?x ?y ?z)) (board_number ?x) ( <= (base (control ?x)) (role ?x)) ( <= (input Tiger (move ?x ?y)) (board_number ?x) ( <= (input Dog (move ?x ?y ?a ?b)) (board_number ?x) (board_number ?y) ( <= (input ?x noop) (role ?x)) (init (piece 1 1 D)) (init (piece 2 5 D)) ( <= (legal Tiger (move ?x ?y)) (true (control Tiger)) ( <= (legal Tiger (move ?x ?y)) (true (control Tiger)) ( <= (legal Dog (move ?x ?y ?a ?y)) (true (control Dog)) ( <= (legal Dog (move ?x ?y ?x ?b)) (true (control Dog)) ( <= (legal ?x noop) (not (true (control ?x))) ( <= (next (piece ?x ?y T)) (does Tiger (move ?x ?y))) ( <= (next (piece ?x ?y D)) (true (piece ?x ?y D)) ( <= (next (piece ?x ?y D)) (does Dog (move ?a ?b ?x ?y))) ( <= (next (step ?x)) (true (step ?y)) (successor ?y ?x)) ( <= (kill_dog ?x ?y) (kill_dogs ?x ?y ?a ?b)) ( <= (kill_dogs ?x ?y ?a ?y) (does Tiger (move ?c ?y)) ( <= (kill_dogs ?x ?y ?x ?b) (does Tiger (move ?x ?c)) ( <= (h_adj ?x ?y ?z) (adj_num ?a ?x) ( <= (v_adj ?x ?y ?z) (adj_num ?y ?b) ( <= kill_tiger (true (piece ?x ?y T)) ( <= terminal kill_tiger) ( <= (goal Tiger 0) (not (double_dog_count 3))) ( <= (goal Dog 0) (not kill_tiger)) ( <= (adj_num ?x ?y) (or (successor ?x ?y) (successor ?y ?x))) (piece_type T) (board_number 1) (double_dog_count_n 1) (successor 1 2) |
Check if its right... |
Greate! I will run it tomorrow. |
I pasted the code to tigerDog.gdl . |
Hey... I am sorry for the late response... I was actually on a summer vacation and did not have stable internet connection. I see you are getting some errors while parsing the code. I will look into it and try to change the game with new rules. |
thank you,you are a good man. |
Hey... So I had couple of problems while writing the game..
|
I think Judging the dogs or tiger died is after they moving. so in the first example is the situation of "When the dogs surrounded the tiger such that there is no unoccupied adjacent position for the tiger to the gamecontroller is there https://drive.google.com/file/d/0BxnyuaOSdSDqNVNfamIzM1pyMlk/view?usp=sharing |
Yes I am assuming the death of any piece is after the another player moves. Even then I think situation 1 cannot happens - Lets trace the move sequence after which this situation occurs... D . . . ------------->After Left move D . . . Now as soon as Tiger makes his move to left D2 and D8 will die because them have no support. In this case D1 and D9 should also die because even they have no support. This is my second concern. Is it legal for 2 pair of Dogs to die?? I am extremely sorry if I missing something and feel free to point out. But if indeed my concern is true this game looks much biased towards the Tiger player. I am sort of able to prove that there is only handful of move sequences in which Dog player wins. |
yes I think you are right,because of the discription "two dogs are adjacent to this position such that they three are in the same line, and also these two dogs have no adjacent dogs in the same |
yes... In this case killing the tiger is extremely difficult... I mean think about it... I would recommend to check the rules of this game with your teacher again. Ask him about this issue and what happens in it. |
I am not sure if I understood that properly. Can you please elaborate it a little?? I am confused between the 'same line' and 'another line'. |
D1 D2 D3 D4 we thought D1,D9 D2,D9 would die. |
you are saying D5 and D1 in the same line as D2 and D1?? D5 and D1 are in vertical line and D2 and D1 are in horizontal line... and D1, T and D9 are in diagonal line. So lets take the description given to us ... "When the tiger enters a position such that the following condition holds - 2 dogs are adjacent to this position such that they are in the same line" This condition holds as D1, T and D9 are in a diagonal line. then the second part "and also these 2 dogs have no adjacent dogs in the same line. " Now you are saying that here the same line does not refer to the same diagonal line right?? |
yes, I consider that 'same line ' including the vertical line, horizontal line and diagonal line ,so long as the dogs in the line |
I am sorry but I am still unable to understand the exact rule. Can you please elaborate with more examples?? which shows the application of this rule?? |
hi, my teacher said it was good which you gave to me . |
Is there a correct gdl for this game? Bonkebo and sumedhghaisas ? |
@Song-Ji Depends :) what are the correct rules?? |
Hi,I have a question about a GGP game.Can you help me?
Thanks!
Here is a very ancient game originated from China: Tiger vs Dogs.
In the above 4X4 board(5 rows,5columns), there are one tiger (represented by a white stone in the center) and 16 dogs
(represented by black stones in the perimeter).
The tiger is controlled by the tiger player and the dogs are controlled by the dog player. The tiger player
goes rst and then they take turns. Each player can go one step along the line to an adjacent position that
is not occupied.
When the tiger enters a position such that the following condition hold \two dogs are adjacent to this
position such that they three are in the same line, and also these two dogs have no adjacent dogs in the same
line", then these two dogs are killed by the tiger. If 6 dogs are killed, then the tiger player wins and the dog
player loses.
When the dogs surrounded the tiger such that there is no unoccupied adjacent position for the tiger to
move, then the tiger player loses and the dog player wins.
Write a game description in GDL (KIF form) for this game.
The text was updated successfully, but these errors were encountered: