• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Alistair Sheehy Hutton

  • Content count

  • Joined

  • Last visited

Community Reputation

134 Neutral

About Alistair Sheehy Hutton

  • Rank
  1. Finally having my first free weekend in a few months I'm almost done with my C implementation.  The data structures I've come up with aren't that fancy or complicated but are pretty efficient.  Once I got out of the mental dead end of the "deck of cards" actually behaving like a deck of cards with a 'top of deck' and the like I've been able to arrange the cards such that I need very few operations to save the current state and randomise the game state for the Monte Carlo playouts..   As you'd expect it's blazingly fast compared to my Python implementation, on the order of several hundred times speed up, possibly more.  Once I'm done with this I'll be interested to go back to the Python code and implement the same data structures in Python - once I'm no longer allocating and freeing memory all over the place I wonder how fast I can get the Python code to run.
  2. I am genuinely proud of myself for starting as "stupid" as possible.  I started with a single variable per team and worked my way up.
  3.   And don't try to second guess what complexity of solution you will need - start simple and work your way up as needed.  I did some work predicting results of rugby matches and a linear sum of 6 variables (3 per team) was enough to get results comparable with the bookmakers.
  4.   I've done C and C++, although given how long since I've last used them in anger I would hesitate to say that I am proficient in either.  This may be a good project to reacquaint myself with the language.
  5. Thanks for your responses, would have replied sooner but had problem logging back into the site.   I had profiled my code before posting and had spotted a few obvious inefficiencies, for example due to stupidity on my part I was shuffling the deck twice when performing a play through of the Monte Carlo player and still building up logging strings despite not printing them out.  Now that I have knocked out the (to me) obvious the largest amount of time by far is spent in random.shuffle().  Briscola is a trick taking game (normally 2 players) where players have a hand of three cards and  each round play 1 card then draw one card blind from the common deck.  So correct me if I'm wrong but each play through by the Monte Carlo player requires shuffling all the unseen cards to get a new ordering of the deck.  That's unavoidable correct?  I'm using Python so the shuffling algorithm is linear time and efficiently executed so I can't see much speed up there.   I think I might just have too many "speed of writing code vs speed of code execution" trade-offs in my Python programming style for this task - I should maybe do this in another language to force me to think about it differently.   PRE-EDIT:  Actually, writing this post has made me think critically about the code - I may have spotted another couple of gross inefficiencies.  I'll let you know how it goes.
  6. I've recently been looking at Briscola, which is a traditional trick taking card game.  I thought it would be relitaavely easy to produce Ai players for it, what with only ever having possible 3 moves a turn and a fixed number of turns to complete the game.  I decided I would knock up a quick Monte Carlo player to see what it played like.  The trouble is while I wrote it pretty quickly the AI is so slow iterating through games that I feel I must be overlooking some fundamentals of appropriate data structures to use to model the deck of cards.   Are there any good code examples of Monte Carlo based AIs for trad card games out there that I could learn from?