Game Description Language for MTG ?
General Discussion of the Intricacies
Moderator: CCGHQ Admins
Game Description Language for MTG ?
by decked » 08 Oct 2013, 04:55
GDL 'Game Description Language' describes the state of a game as a series of facts, and the game mechanics as logical rules.
Has anyone tried to do any work with MTG and GDL? It seems like it could be good common platform for MTG playing AI, as well as a foundation for rule enforcing engines.
(I would provide instructive links but I am new and urls are banned for new users. It is easy to find resources with a quick search.)
Has anyone tried to do any work with MTG and GDL? It seems like it could be good common platform for MTG playing AI, as well as a foundation for rule enforcing engines.
(I would provide instructive links but I am new and urls are banned for new users. It is easy to find resources with a quick search.)
- decked
- Posts: 2
- Joined: 08 Oct 2013, 04:42
- Has thanked: 0 time
- Been thanked: 0 time
Re: Game Description Language for MTG ?
by Huggybaby » 08 Oct 2013, 06:05
Links are enabled after five posts. In the meantime, add a space or something to obfuscate the link, or leave out the http, it's easy enough to do.
Thanks for the interesting topic!
Thanks for the interesting topic!
-
Huggybaby - Administrator
- Posts: 3207
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 701 times
- Been thanked: 594 times
Re: Game Description Language for MTG ?
by silly freak » 08 Oct 2013, 06:32
I would be intereseted in some links indeed! I didn't know there was something as specific as a GDL. I'll certainly look into it.
___
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
- silly freak
- DEVELOPER
- Posts: 598
- Joined: 26 Mar 2009, 07:18
- Location: Vienna, Austria
- Has thanked: 93 times
- Been thanked: 25 times
Re: Game Description Language for MTG ?
by Hellfish » 08 Oct 2013, 08:43
I believe this is the link referenced: http://games.stanford.edu/gdl.html
Take this post with a grain of salt as I'm just a happy amateur in the field, but I'm skeptical. I don't see how this would work with randomness (next(p) relation), for instance.The relative ease of going infinite in a variety of ways probably doesn't help either.
Take this post with a grain of salt as I'm just a happy amateur in the field, but I'm skeptical. I don't see how this would work with randomness (next(p) relation), for instance.The relative ease of going infinite in a variety of ways probably doesn't help either.
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
-
Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Game Description Language for MTG ?
by decked » 08 Oct 2013, 18:10
I am also skeptical if GDL would work with MTG. I think the randomness could be handled with standard language extensions, but I do not know if MTG could work within the language constraints to prevent infinite recursion.Hellfish wrote:Take this post with a grain of salt as I'm just a happy amateur in the field, but I'm skeptical. I don't see how this would work with randomness (next(p) relation), for instance.The relative ease of going infinite in a variety of ways probably doesn't help either.
see
http:(slash)(slash)www(dot)wikipedia(dot)org(slash)wiki(slash)General_game_playing
and
http:(slash)(slash)www(dot)ggp(dot)org
I have also learned that a Coursera course has just started on General Game Playing and the focus of the sylabus is using GDL to describe games and writing clients to play those games. This could be a great resource to test this out and might be of interest to this community in general.
See http:(slash)(slash)www(dot)coursera(dot)org(slash)course(slash)ggp
- decked
- Posts: 2
- Joined: 08 Oct 2013, 04:42
- Has thanked: 0 time
- Been thanked: 0 time
Re: Game Description Language for MTG ?
by nharding » 13 Mar 2015, 22:08
I started to write an automatic code generator, that would parse the Oracle text to produce skeletal code that could then be modified. The problem is that when the make changes to the code, that it is not overwritten the next time you parse the data (to add a new set for example). I planned on using "virtual" functions (not true virtual function since I wanted to be able to modify them dynamically, so function pointers and macros).
6 posts
• Page 1 of 1
Return to Magic Rules Engine Programming
Who is online
Users browsing this forum: No registered users and 39 guests