473,414 Members | 1,692 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,414 software developers and data experts.

Urge for help in a game programming

Four Win
Description

To program the play named "four win", the background board should
consist of a lattice with 7 columns, into which in each case 6 stones
fit. The playing field stands perpendicularly, so that a stone falls
always widen-possible downward.
The rules are :
1. The goal of the Game is to place four stones in a row or column wise
or diagonally as a first player.
2. Each player receives 21 stones of his colour (pink/green).
3. The green player begins.

4. The player lets a stone fall alternating into a row.
5. If no more places are in a row, then this may not be selected.
6. Winner will be the player, who can accommodate first four stones in
a continuous manner (horizontally, vertically, diagonally).
7. If the backboard is full and there is no certain winner, then the
play ends undecided.
For a better understanding go to:

http://www.kielack.de/games/fourwins.htm
The program is to cover the following capability characteristics:

· Play between two human players.
· Play between a human and a computer player.
· Play between two computer players.
· Each player is to extend the abstract class ,,Player ", which is
available on the practical course web pages for the Download.
References
· One can make Screenshots simply by pressing the key at the same
time ,,pressure/print screen "and/or <Altand ,,pressure/print
screen "(the screen and/or the active window copies as diagram into
the intermediate file, so that these can be inserted in Word over
Edit->Past as picture directly).

· The aim for this program is to show as simple text edition as
shown in the example TicTacToe (see C++ program
simpleTicTacToe.cpp).
· In the simplest case the computer player can make coincidental
courses (see C++ program zufallszahlen.cpp (RandomNumbers). A more
intelligent strategy for the computer player can be programmed
according to the mini max algorithm (e.g. see.
http://de.wikipedia.org/wiki/
http://en.wikipedia.org/wiki/Minimax_algorithm). An improved variant
for this algorithm is the alpha beta search (e.g. see
http://en.wikipedia.org/wiki/Alpha-Beta).

Jul 18 '06 #1
6 1752
"ume$h" wrote
Four Win
Description

[snip assignment]

Looks like a fun project. What have you done so far?

--
Randy
Jul 18 '06 #2
"ume$h" <fr****************@gmail.comwrote:

[ Snip homework assignment ]

Are you following a course on how to make yourself look a prat on as
many newsgroups as you can?

Furrfu.

Richard
Jul 18 '06 #3
R. Scott Mellow wrote:
"ume$h" wrote
Four Win
Description

[snip assignment]

Looks like a fun project. What have you done so far?
Well, since the OP hasn't even decided for a language yet (comp.lang.c++ and
comp.lang.c are mutually exclusive...) I don't think there is much code to
view. Therefore, the right group for this is probably
alt.comp.lang.learn.c-c++ - follow-up set accordingly.

To the OP: please read the FAQ of that group before posting there (or,
rather, in any group before you post there), it also features some info on
homework assignments.

Uli

Jul 18 '06 #4

R. Scott Mellow wrote:
"ume$h" wrote
Four Win
Description

[snip assignment]

Looks like a fun project. What have you done so far?
Well, he's pasted his assignment into the Babelfish, selected "German
to English" and clicked "Translate". Credit where credit's due ;-)

Jul 18 '06 #5
In message <11**********************@b28g2000cwb.googlegroups .com>,
tragomaskhalos <da*************@logicacmg.comwrites
>
R. Scott Mellow wrote:
>"ume$h" wrote
Four Win
Description

[snip assignment]

Looks like a fun project. What have you done so far?

Well, he's pasted his assignment into the Babelfish, selected "German
to English" and clicked "Translate". Credit where credit's due ;-)
I _thought_ it looked suspiciously like "How to Spiel Halma" ;-)

"This seemed to be pretty straightforward: At this Game 2 or 4 Persons
can betake themselves and each of them wears a Colour and damn it, when
2 Persons play, a big house with 19 stones, when 4 Persons play, he
besets a little House with 13 stones. [Jennings took “damn it” to be
an idiomatic way of saying that the real way to play this game is with 4
Persons. Of course, if you must you can play with 2 Persons, but, damn
it, it's a pretty poor show. His friend insisted that damit means with
that or therewith, but this didn't seem to make any more sense.]"

http://omf.blogspot.com/2005/03/how-to-spiel-halma.html

--
Richard Herring
Jul 19 '06 #6
You need to visit comp.lang.a for a game programming questions.
On 18 Jul 2006 08:04:43 -0700, "ume$h" <fr****************@gmail.com>
wrote:
>Four Win
Description

To program the play named "four win", the background board should
consist of a lattice with 7 columns, into which in each case 6 stones
fit. The playing field stands perpendicularly, so that a stone falls
always widen-possible downward.
The rules are :
1. The goal of the Game is to place four stones in a row or column wise
or diagonally as a first player.
2. Each player receives 21 stones of his colour (pink/green).
3. The green player begins.

4. The player lets a stone fall alternating into a row.
5. If no more places are in a row, then this may not be selected.
6. Winner will be the player, who can accommodate first four stones in
a continuous manner (horizontally, vertically, diagonally).
7. If the backboard is full and there is no certain winner, then the
play ends undecided.
For a better understanding go to:

http://www.kielack.de/games/fourwins.htm
The program is to cover the following capability characteristics:

· Play between two human players.
· Play between a human and a computer player.
· Play between two computer players.
· Each player is to extend the abstract class ,,Player ", which is
available on the practical course web pages for the Download.
References
· One can make Screenshots simply by pressing the key at the same
time ,,pressure/print screen "and/or <Altand ,,pressure/print
screen "(the screen and/or the active window copies as diagram into
the intermediate file, so that these can be inserted in Word over
Edit->Past as picture directly).

· The aim for this program is to show as simple text edition as
shown in the example TicTacToe (see C++ program
simpleTicTacToe.cpp).
· In the simplest case the computer player can make coincidental
courses (see C++ program zufallszahlen.cpp (RandomNumbers). A more
intelligent strategy for the computer player can be programmed
according to the mini max algorithm (e.g. see.
http://de.wikipedia.org/wiki/
http://en.wikipedia.org/wiki/Minimax_algorithm). An improved variant
for this algorithm is the alpha beta search (e.g. see
http://en.wikipedia.org/wiki/Alpha-Beta).
Jul 22 '06 #7

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

Similar topics

1
by: Claude Vernier | last post by:
Hello, I'm a C# programmer. I have two projects. First, write an action scrolling game in C#, (portable to Windows Mobile eventually...), This game will look like The Adventure of Link from...
9
by: the_philospher | last post by:
I am a beginner programmer learning c++. i have read some useful information about programming games (which is my goal) on gamedev.net, particularly "how do i program games"...
2
by: Hans Kamp | last post by:
As a programming exercise I try to program a game. In my case it is called BugEater. The purpose is that you are a snake. It moves automatically but you can control it with the keys on your...
4
by: robinsand | last post by:
My apologies to those of you who are more advanced Visual C++ .NET programmers, but I am working on a project for an MBA course that is condensed into an eight-week schedule, and I need help...
6
by: ume$h | last post by:
Four Win Description To program the play named "four win", the background board should consist of a lattice with 7 columns, into which in each case 6 stones fit. The playing field stands...
1
hpbutterbeer
by: hpbutterbeer | last post by:
We have a Machine Project and my brain is currently in a clouded state. Sorry, I'm just a beginner in C Programming... Text twist is a windows game whose main objective is to form words out of the...
4
by: COHENMARVIN | last post by:
Are there any good sources on video game programming in vb.net? Is "DirectX" a set of libraries for video game programmers? The reason I ask is that I'd like to convert a board game into a...
5
by: av3rage | last post by:
I have never done any programming in my life but I have decided to go into engineering and in doing so we have to take this intro to programming course and I am pretty clueless. I am starting to get...
0
by: smartx | last post by:
Hi, I would like to share my knowledge as a game programmer, really game programming is hard, I don't want to disappoint you, the important point to become a game programmer is to love game...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.