Remove Ad, Sign Up
Register to Remove Ad
Register to Remove Ad
Remove Ad, Sign Up
Register to Remove Ad
Register to Remove Ad
Signup for Free!
-More Features-
-Far Less Ads-
About   Users   Help
Users & Guests Online
On Page: 1
Directory: 87
Entire Site: 4 & 847
Page Staff: pokemon x, pennylessz, Barathemos, tgags123, alexanyways, supercool22, RavusRat,
04-24-24 08:46 AM

Thread Information

Views
1,017
Replies
3
Rating
0
Status
CLOSED
Thread
Creator
alexanyways
01-19-11 03:46 PM
Last
Post
alexanyways
01-21-11 07:54 AM
Additional Thread Details
Views: 296
Today: 0
Users: 0 unique

Thread Actions

Thread Closed
New Thread
New Poll
Order
 

Need JavaScript Help!

 

01-19-11 03:46 PM
alexanyways is Offline
| ID: 314385 | 64 Words

alexanyways
Level: 193


POSTS: 5303/12496
POST EXP: 610413
LVL EXP: 100465475
CP: 14492.5
VIZ: 136810

Likes: 0  Dislikes: 0
I have a science fair project due soon, and I made it a project on coding a Sudoku puzzle solution solver with HTML and Javascript, I need the "Solve Button" but I have everything else.

Please help!

I'm summoning the top people I know on these subjects.

JigSaw :
septembern :
Davideo7 :

Can you help me?

Here's what I have so far:

http://gamature.goo-board.com/h8-
I have a science fair project due soon, and I made it a project on coding a Sudoku puzzle solution solver with HTML and Javascript, I need the "Solve Button" but I have everything else.

Please help!

I'm summoning the top people I know on these subjects.

JigSaw :
septembern :
Davideo7 :

Can you help me?

Here's what I have so far:

http://gamature.goo-board.com/h8-
Vizzed Elite

Affected by 'Laziness Syndrome'

Registered: 02-24-10
Last Post: 224 days
Last Active: 210 days

01-19-11 04:55 PM
is Offline
| ID: 314436 | 157 Words


JigSaw
Level: 164


POSTS: 5491/7936
POST EXP: 584185
LVL EXP: 57401590
CP: 8045.8
VIZ: -46031833

Likes: 0  Dislikes: 0
Probably need to make a new function for solving the puzzle. And since I suck at puzzles in general I don't really know how it works Basically you would just need a new function then pull the results from the form and check wether the numbers are correct or not if that is how your wanting it to work:

var cell_C1_4 = document.getElementById('C1_4');
var cell_C1_4 = C1_4.value;

if(cell_C1_4 != 3){
cell_C1_4 = "X";
}

X would be the wrong number. There probably is a formula you can use sorta like the one that is used in your code however as I said I am not great at math or javascript in general. I also am not sure what exactly your wanting to do with this, are you wanting a solve button which just puts all the missing #'s up without checking what the user entered? Or do you want it to check what the user types?
Probably need to make a new function for solving the puzzle. And since I suck at puzzles in general I don't really know how it works Basically you would just need a new function then pull the results from the form and check wether the numbers are correct or not if that is how your wanting it to work:

var cell_C1_4 = document.getElementById('C1_4');
var cell_C1_4 = C1_4.value;

if(cell_C1_4 != 3){
cell_C1_4 = "X";
}

X would be the wrong number. There probably is a formula you can use sorta like the one that is used in your code however as I said I am not great at math or javascript in general. I also am not sure what exactly your wanting to do with this, are you wanting a solve button which just puts all the missing #'s up without checking what the user entered? Or do you want it to check what the user types?
Vizzed Elite
PHP Developer, Security Consultant

Affected by 'Laziness Syndrome'

Registered: 04-06-06
Location: Area 51
Last Post: 1733 days
Last Active: 1727 days

01-19-11 07:31 PM
alexanyways is Offline
| ID: 314532 | 12 Words

alexanyways
Level: 193


POSTS: 5304/12496
POST EXP: 610413
LVL EXP: 100465475
CP: 14492.5
VIZ: 136810

Likes: 0  Dislikes: 0
JigSaw : Thanks for that, I'm checking what the user has typed.
JigSaw : Thanks for that, I'm checking what the user has typed.
Vizzed Elite

Affected by 'Laziness Syndrome'

Registered: 02-24-10
Last Post: 224 days
Last Active: 210 days

01-21-11 07:54 AM
alexanyways is Offline
| ID: 315088 | 6 Words

alexanyways
Level: 193


POSTS: 5342/12496
POST EXP: 610413
LVL EXP: 100465475
CP: 14492.5
VIZ: 136810

Likes: 0  Dislikes: 0
Anyways, does anybody else have suggestions?
Anyways, does anybody else have suggestions?
Vizzed Elite

Affected by 'Laziness Syndrome'

Registered: 02-24-10
Last Post: 224 days
Last Active: 210 days

Links

Page Comments


This page has no comments

Adblocker detected!

Vizzed.com is very expensive to keep alive! The Ads pay for the servers.

Vizzed has 3 TB worth of games and 1 TB worth of music.  This site is free to use but the ads barely pay for the monthly server fees.  If too many more people use ad block, the site cannot survive.

We prioritize the community over the site profits.  This is why we avoid using annoying (but high paying) ads like most other sites which include popups, obnoxious sounds and animations, malware, and other forms of intrusiveness.  We'll do our part to never resort to these types of ads, please do your part by helping support this site by adding Vizzed.com to your ad blocking whitelist.

×