Search found 6 matches
- Sun Sep 06, 2009 11:00 am
- Forum: PC Gaming
- Topic: Finding square roots
- Replies: 21
- Views: 18157
Re: Finding square roots
to test for a prime number, the fastest way is to have a list. Of course, that list gets pretty long, so you should only have primes under a million or so. to find them, write a program to make an array for the prime numbers and a variable to keep track of what number it's on. then have it go to eve...
- Sun Sep 06, 2009 10:37 am
- Forum: PC Gaming
- Topic: Tic Tac Toe AI
- Replies: 10
- Views: 10446
Re: Tic Tac Toe AI
use the
xxx
xxx
ooo
way of coding, although I'd just make it one string xxxxxxooo
the invincible tic tac toe strategy is easy to learn (just google it). Then just code in every situation
xxx
xxx
ooo
way of coding, although I'd just make it one string xxxxxxooo
the invincible tic tac toe strategy is easy to learn (just google it). Then just code in every situation
- Sun Sep 06, 2009 10:33 am
- Forum: PC Gaming
- Topic: PHP/MySQL knowledge needed for this project?
- Replies: 16
- Views: 13788
Re: PHP/MySQL knowledge needed for this project?
GOOGLE CALENDER! It's free, easy, and reliable... but if you must do things your own way, I suggest php and mysql. Pretty much, you'll want your database to have the following tables (feel free to change the names): -workers -classes -shifts -assignments columns: workers should contain workerID, cla...
- Sun Sep 06, 2009 10:18 am
- Forum: PC Gaming
- Topic: help with CSS - Horizontal navbar
- Replies: 16
- Views: 13630
Re: help with CSS - Horizontal navbar
css is a very broad topic that changes a lot... if you want a refresher, I recommend w3schools.com take the css course (and any others you want) and you'll be fluent in no time. also, remember that formatting with html tables is "evil" now (because that's not what they're intended for) always use fl...
- Sun Sep 06, 2009 10:12 am
- Forum: PC Gaming
- Topic: Collecting user data from HTML form and exporting to Excel
- Replies: 5
- Views: 7902
Re: Collecting user data from HTML form and exporting to Excel
If you want to construct a database, you should really buy a book as there's no way to fit a guide to php and mysql into a forum post. also, (I'm not sure if this will work) if you want to stick with the excel idea, php can write text files and you can (most likely, as I don't have access to excel n...
- Sun Sep 06, 2009 10:09 am
- Forum: PC Gaming
- Topic: Javascript being akward
- Replies: 2
- Views: 3506
Re: Javascript being akward
Javascript isn't awkward at all. It's just too lenient in some browsers: the problem is that each line of javascript is supposed to end with a semicolon (;) sometimes when you forget to end with ; browsers are able to figure out what you meant and the script seems to work. This is very annoying when...