Help with minesweeper game, HTML document |
Help with minesweeper game, HTML document |
CharGP02A |
Mar 17 2009, 05:06 PM
Post
#1
|
Group: Members Posts: 2 Joined: 17-March 09 Member No.: 8,095 |
I need to make a minsweeper HTML web site game. I can't use CSS, XML, XHTML, and extremely advanced Javascript. I can only use regular HTML and JavaScript. If someone can help me with this, I would appreciate it.
Below is the steps to take to make it. (1) Show a 8 * 8 table on the webpage; (2) Randomly place 10 mines in the table (make sure some of them are not placed in the same data cell); (3) In the beginning, nothing is displayed in the table; (4) When the user clicks a data cell, if it contains a mine, the user loses; if it does not contain a mine, it shows the number of mines in its direct neighboring data cells. If there is no mine in its neighbors, show nothing in the data cells; (5) The user needs mark (open) all the data cells that have no mines to win the game; (6) There is a counter shows how many seconds pass until the user wins; (7) Use pictures to show a data cell before it is clicked, and to show number or mine after it is clicked. |
Darin McGrew |
Mar 17 2009, 05:12 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
I've moved this to the Client-side Scripting forum, since it's a JavaScript assignment.
|
pandy |
Mar 18 2009, 12:08 AM
Post
#3
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,731 Joined: 9-August 06 Member No.: 6 |
You'lll need a little CSS, even if manipulated by JS.
|
CharGP02A |
Mar 18 2009, 08:40 AM
Post
#4
|
Group: Members Posts: 2 Joined: 17-March 09 Member No.: 8,095 |
|
pandy |
Mar 18 2009, 08:48 AM
Post
#5
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,731 Joined: 9-August 06 Member No.: 6 |
How rude to quote my typo.
It would take me several days to figure that out and weeks to implement and probably it still wouldn't be good. But you can show and hide boxes with CSS and CSS properties can be manipulated by JS, so I figure that's how it's done. |
Frederiek |
Mar 18 2009, 01:38 PM
Post
#6
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
Try a search for "java script: minesweeper game" at Google. Seems to come up with something useful to you.
[edit] Posting the google url query messed up the rendered link, but the above was what I searched for. This post has been edited by Frederiek: Mar 18 2009, 01:40 PM |
Lo-Fi Version | Time is now: 26th April 2024 - 02:10 PM |