473,837 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.c pp (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 1777
"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.comw rote:

[ 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.l earn.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************ **********@b28g 2000cwb.googleg roups.com>,
tragomaskhalos <da************ *@logicacmg.com writes
>
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.c pp (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
1569
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 Nintendo, or Super Mario Bros... I didn't planned to use DirectX since all tutorials I have seen for DirectX are for 3D.
9
3884
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" http://www.gamedev.net/reference/design/features/makegames/. the article suggests first programming a tetris clone, then moving on to "breakout", "pacman", and a super mario style game.. My question is, how long should it realistically take me to be able to...
2
2593
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 keyboard. In the field where your snake is, there are candies that you must eat. The more candies you eat, the longer you get. You win if you eat all 10 candies without dying more than 3 times in one level. In that case a time bonus is added to your...
4
2217
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 getting a program up and running with proper files and documentation to be handed in for a grade (on Microsoft Visual Studio .NET 2003). I am being graded on how well I incorporate advanced C++ features such as inheritance, polymorphic programming,...
6
346
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 perpendicularly, so that a stone falls always widen-possible downward. The rules are :
1
4433
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 letters shown on the screen, you move on to the next level when you are able to form a word with all the letters given. In the actual game you click on the letters of the word, in this text version you simply type the words. To be able to...
4
4442
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 computer game. Its a game with up to 4 players, so it seems like it would be hard to do. After all, a computer doesn't have up to 4 mouses. And its a board game where pieces move on the board, so I'd have to keep redrawing the board but with squares...
5
4193
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 the hang of how python works but to put my thoughts into the program to make it run is the confusing part for me. The task is to implement a Hangman game and the Program Specifications are: 1) Output a brief description of the game of hangman...
0
1029
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 programming, this way you will reach your target, also you need to be patient, don't stop on the half of the road, like you are building a great building and when you leave it like you destroy what you built, sure because what you learn needs a practice...
0
9852
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10902
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10642
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10288
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9420
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7824
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7014
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5680
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4481
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.