Discuss Scratch

happygoat432
Scratcher
100+ posts

Help with Board Game

I've been working on a board game, but have run into a “roadblock,” so to speak.
The general concept of the program involves the sprite design as one of the main factors.
Each tile has a certain number of “spikes” on each side. If one with, say, 3 spikes on its right side is placed on the board, and another with four spikes on its left side is placed adjacent to it, so the sides with spikes are touching, the one with more spikes will claim the other, therefore changing the second one's color to blue as well and adding another point to the blue player's score.

This is harder to explain than I thought it would be. Here's a visual to show it better.
http://psnprofiles.com/lib/img/games/6d7783/trophies/25L7e019c.png

If this tile was placed above one with two spikes on the top, then it would take the other one over, therefore increasing your score.

For those who know the game, it's a bit like Skystones.

My problem is in the programming for this. My two questions are:
1. How do I get the computer to recognize the number of spikes on each side and how they interact with other tiles?
2. How can I get the scores for each player to adjust to the costume changes signifying changing sides?

Any help will be appreciated!


The loveliest lies of all~
scubajerry
Scratcher
1000+ posts

Help with Board Game

Are all tiles the same? If not, what are the number of spikes that can be on a side?

What are the dimensions of the board?

Can only odd number touch even numbers?
———————
I think all of this will be a challenging project. I think each piece is a clone. Each piece would need to know all about where on the board it is and how many spikes it has on each side. When you placed a piece, you would have to broadcast, and have pieces return information.

Last edited by scubajerry (Oct. 29, 2013 04:46:39)

happygoat432
Scratcher
100+ posts

Help with Board Game

All the tiles are different, with different numbers of spikes on each side. The board is 3*3, meaning that there's room for 9 pieces total, with each tile being rectangular. The current pieces I have are one with one spike on top and one on the right, another with one on top and one on the left, one with two on top and two on bottom, and one with one spike on the left and one on the bottom. Each player would get a deck of 5 tiles, and the player who started second would end up with one extra at the end. I have not yet determined the opponent's deck, though I could simply duplicate Player 1's.


The loveliest lies of all~

Powered by DjangoBB