Gamelogic
  • Home
  • Blog
  • Tools
    • Grids 2 (for Unity)
      • Features
      • Documentation
    • Grids 1 (Legacy, for Unity)
      • 30 games in 30 days
      • Features
      • Tutorials, Documentation, and FAQ
      • Games made with Grids for Unity
      • Examples
      • What is new?
      • Grid Prototypes and Previews
      • Buy
    • Extensions
    • Colors
      • Features
      • Documentation and tutorials
      • Buy
    • Words
      • Features
      • Documentation
      • Buy
    • Abstract Strategy
      • Features
      • Documentation and tutorials
      • Examples
      • Buy
    • Match
      • Features
    • Grids (for GameMaker)
      • 30 games in 30 days
      • Features
      • Documentation
      • Buy
  • Buy
  • Articles
  • Support
    • Knowledge Base
    • Email Support
  • About
    • Meet our team

Blog

Day 27 Game 27: 30 games in 30 days using Grids

CLICK HERE TO PLAY GAME 27


This is what Grids did for us today. What can Grids do for you?

Game 27 is our version of the game Line up 4 played on a diamond grid. In our version you have to line up 3. You can also add pieces from two sides of the grid, instead of one. The aim of the game is to line up 3 pieces before your opponent, either horizontally, vertically or diagonally.

Because the game is implemented on a diamond grid (this type of grid is also used in our isometric games), it gives us the possibility to have two directions for “gravity”. The AI is a simple one-move-ahead greedy algorithm. A grid with the same structure (but different data elements) is used for the look-ahead. The AI first looks if there are any next moves that make the computer win; then it looks for any moves that will make the player win (so that it can block them). After this, it looks for moves that allows it to make a line of two; after this it looks for a move the player can make to get a line of two (again, to block it). Finally, if no good moves have been found, it makes a random move.


Click here to check out all 30 games 


Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Related

  1. Day 3 Game 3: 30 games in 30 days using Grids  Game 3 is a version of the famous game Ludo....
  2. Day 5 Game 5: 30 games in 30 days using Grids  Game 5 is a version of the game Lines played...
  3. Day 14 Game 14: 30 games in 30 days using Grids  Game 14 is a version of the game Snake played...
  4. Day 9 Game 9: 30 games in 30 days using Grids  Game 9 (African Savannah) is a simulation played on an...
  • Permalink
  • Posted: 27 November 2013
  • Tags: Diamind grid, isometric grid, line up 4, unity game, Unity Library, Unity Plugin
  • Author: Gamelogic
Recent Posts
  • Tool Documentation Overhaul
  • What is new in Grids Pro 2.3.5
  • What is new in Grids Pro 2.3.2
  • What is new in Abstract Strategy 2.1.1
  • What is new in Words 2.0.2
Categories
  • 30 Games in 30 Days
  • AbstractStrategy
  • Aside
  • Colors
  • Example
  • Extensions
  • General
  • Grids
  • Grids 2
  • Previews
  • Programming
  • Social Media
  • Uncategorized
  • Words
Follow us on Twitter
My Tweets
Meta
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
  • Home
  • Features
  • Blog
  • About
  • 14 Eglin Road, Sunninghill, Johannesburg, South Africa
  • support@gamelogic.co.za
Stay Connected
  • Facebook
  • Google
  • Linkedin
  • Rss
  • Twitter
  • Gamelogic © 2013