![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |||
| [SOLVED] i want to write a program for minesweaper with pascal? i want to write a program for minesweaper with pascal language but in this kind of minesweaper we every block instead of show the number of bomb must show the least way to the nearer bomb |
| |
| |||
| Wow, Pascal. Haven't used that since the mid 1980's. I don't remember much syntax, but here's a distance algorthm you can implement easily (and should look familiar): distance = sqrt( (x1 - x2)^2 * (y1 - y2)^2 ) where x1,y1 is one position and x2,y2 is another on your grid. |
![]() |
| Thread Tools | |
| Display Modes | |
| |