Course Game Lines on Borland C 3.1

Affiliates: 0,6 $how to earn
Pay with:
i agree with "Terms for Customers"
Sold: 4 last one 21.04.2012
Refunds: 0

Uploaded: 10.08.2009
Content: lines.zip 18,08 kB
Loyalty discount! If the total amount of your purchases from the seller bsnbot more than:
5 $the discount is20%
If you want to know your discount rate, please provide your email:

Product description

At the moment, there are many versions and implementations of the popular game Lines. Despite its simplicity, this game does not become less popular, but on the contrary, to become a great favorite among women. It's safe to say that the Lines is not only interesting, but also useful, because refer to the logical computer games, develops thinking. So many people remember and love this game. There are also instances of competition in Lines in the championship.

Rules of the game: in the square field 9x9 cells arranged colored balls. The meaning of the game is that you need to score as many points as possible, of the same color balls in a line of five or more balls. Balls move around the mouse, first choose a ball that need to move, and then - a blank position in which it is necessary to put it. If, instead of a blank position to choose employment, the ball standing on it will be selected. The ball can be rearranged only reached the position, the trajectory of which is displayed on the screen. After each move the ball appears still three balls. The only exception is the case as a result of the progress made is destroyed another line. The number of points equal to the number of balls destroyed.

When writing the program it has been used a number of algorithms that will be further examined. Needless playing field stored in the integer two-dimensional array of 9x9, each element of which stores information about the relevant box of the game board, namely, if the value is zero, the item is free, otherwise M [i] [j] stored number corresponding to the color of the ball .
Because the C ++ version Borland C ++ 3.1 has a number of shortcomings delay function at work on modern computers (similar to the error in Turbo Pascal 7.0 module Crt), the program has a function mydelay (n), performing the same function using the built-in timer.

The purpose of writing a program is the implementation of algorithms. A smaller part of the program is responsible for the front end, which is mainly based on the use of standard library functions graphics.h. Just for convenience management library is used ms_mouse.h, which are necessary to control objects with the mouse. Algorithms associated with the interface will not be considered in this work, because it is not as essential.
The program is debugged and tested on a computer Pentium 166MMX / 32 Mb RAM / 1.6 Gb HDD.

Additional information

Contents:

1. Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
2. Basic concepts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
3. The search algorithm is the shortest path. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
4. Algorithm removing long chains. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
5. The text of the program. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Feedback

0
No feedback yet.
In order to counter copyright infringement and property rights, we ask you to immediately inform us at support@plati.market the fact of such violations and to provide us with reliable information confirming your copyrights or rights of ownership. Email must contain your contact information (name, phone number, etc.)