473,402 Members | 2,064 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Bartok card game

Sam
Hey all,

I want to create a computerised version of this game, though I'm not
really sure how to go about it. For those who don't know how the game
works, here's my attempt at a brief description:

It is very similar to the card game Uno, though played with a standard
deck of cards. An initial card is played off the top of the deck, and
then each player has to play a card of the same suit, or the same face
value in another suit. Whoever gets rid of all their cards first is the
winner.

The tricky bit is, the winner of a round gets to make up a new rule.
Some examples might be "when a club is played, skip the next player", or
"when a heart is played, the next player draws 2 cards", etc. So, I am
looking for a way to dynamically add rules to the game, without limiting
the possibilities too harshly. I could always just give a select few
rules to choose from, but then the game loses it's fun ;)

I've been thinking about it for a while, but no obvious path to take has
presented itself to me. If anyone has any suggestions, they would be
greatly appreciated.

Thanks,
Sam.

Jul 18 '05 #1
3 2605
On Tue, 24 Feb 2004 16:30:28 +1100, Sam wrote:
The tricky bit is, the winner of a round gets to make up a new rule.
Some examples might be "when a club is played, skip the next player",
or "when a heart is played, the next player draws 2 cards", etc. So, I
am looking for a way to dynamically add rules to the game, without
limiting the possibilities too harshly. I could always just give a
select few rules to choose from, but then the game loses it's fun ;)


Surely there are some restrictions on the rules that can be added;
otherwise, the first person to win a round could add a rule saying "I
win" and win the game immediately; or a rule saying "The next person to
play a card must bark like a dog and give me their house keys".

Can you give a reference to the restrictions on rules that can be added?
That would allow a better understanding of the problem to be solved.

--
\ "Democracy is the art of running the circus from the monkey |
`\ cage." -- Henry L. Mencken |
_o__) |
Ben Finney <http://bignose.squidly.org/>
Jul 18 '05 #2

"Sam" <st*******@hotmail.com> wrote in message
news:40**********************@news.optusnet.com.au ...
Hey all,

I want to create a computerised version of this game, though I'm not
really sure how to go about it. For those who don't know how the game
works, here's my attempt at a brief description:

It is very similar to the card game Uno, though played with a standard
deck of cards. An initial card is played off the top of the deck, and
then each player has to play a card of the same suit, or the same face
value in another suit. Whoever gets rid of all their cards first is the
winner.

The tricky bit is, the winner of a round gets to make up a new rule.
Some examples might be "when a club is played, skip the next player", or
"when a heart is played, the next player draws 2 cards", etc. So, I am
looking for a way to dynamically add rules to the game, without limiting
the possibilities too harshly. I could always just give a select few
rules to choose from, but then the game loses it's fun ;)


Have winner separately select condition (from lists of suit and rank) and
action (from a list). Number of possible rules is product of number of
possible conditions and actions. Condition in turn is combination of
'suit' (any, red, black, spade, heart, diamond, club) and 'rank' (any,
1-13, even, odd, face). Number, again, is a product: 7 * 17= 119 (- 1 for
any,any) for sample lists above. Multiply by number of actions and you
have more than 'a select few' possible rules. For even more, allow or-ing
of two ranks (3 or 7, etc).

Terry J. Reedy


Jul 18 '05 #3
Sam
> Surely there are some restrictions on the rules that can be added;
otherwise, the first person to win a round could add a rule saying "I
win" and win the game immediately; or a rule saying "The next person to
play a card must bark like a dog and give me their house keys".

Can you give a reference to the restrictions on rules that can be added?
That would allow a better understanding of the problem to be solved.


Obviously a rule like "I win" would make the game pointless. The idea is
to have fun in this game, rather than win money, so people wouldn't
really be motivated to end the game with a crappy rule like "I win".
"The next person to play a card must bark like a dog (snip the rest)" is
a pretty good rule though :-P Basically, the best rules are ones that
will confuse people. If you play out of turn, or ask a question about
the game (eg "who's turn is it?", "is it my turn?", "What does that card
mean?" you have to draw a penalty card).

Basically, anything "reasonable" is a valid rule. "Reasonable" isn't
something the computer will understand very well though. Other than
that, you can do whatever you want. Certain rules won't apply to a
version of the game on computer. For instance, there's no point in
saying "when the 5 of hearts is played, the next player must do the
hokey pokey", because unless you're playing with a video conference or
something no one else will be able to see it. So you can safely
eliminate rules that involve physical actions (like handing over house
keys etc).

I'm not aware of much documentation on Bartok, but as I said, there
really isn't much of a limit on the rules. That's what makes it
interesting to play.

Cheers,
Sam.

Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Gary Camblin | last post by:
Has anyone got a script to run a higher or lower card game on a web page. Like the game show play you cards right.
7
by: Ken Smith | last post by:
I have a little video poker game I created in Javascript. It uses Tables and inner html stuff - for example: (psudo-code) imagePicked=random card image (2h.gif);...
0
by: Limpor | last post by:
Hello, I am new to learning java, and i am trying to build the class for a calculation card game, unfortunately i can't get the public Card top() and Card takeTop() method in the Stock class. Can...
6
by: hicksmcb | last post by:
Hi i'm having some trouble with a card memory game. Typical type. You turn over one card then another, if they dont match you turn them both back over and start again. I've got this 'if else'...
6
by: JNeko | last post by:
Hello all, awesome site! I guess I am technically not a beginner in JAVA, but from my code you would not realize it! I don’t expect anyone to help me with this, but I figure I might as well as try...
1
by: Olmar | last post by:
Hi, I am trying to write a version of the Hears card game. I can't figue out what is the best way to detect clicks on the cards. Using the cards.dll interface as described in tutorials like...
3
by: Fiona1200 | last post by:
Please help me..i have to write a code in java for a card game as follows. there are 4 players each with 4 decks of cards. each deck has four zeros - four seven as follows...
30
by: imran akhtar | last post by:
i have a balckjack code, which does not seem to run, in python, it comes up with syntax error, i have try sortng it out. does not seem to work. below is my code, if anyone can work out wht wrong...
32
by: falconsx23 | last post by:
I am making a game called Set, it is a card game: here is a brief description of the rules: The game of Set is played with 81 cards, each of which has 4 properties (number, pattern, color and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.