Jump to content

sudoku braincracking

  • Please log in to reply
2 replies to this topic

#1 Guest_edwinsweep_*

  • Guests

Posted 15 March 2006 - 11:57 AM

hi everybody i know this isnt really on topic here but i dont know any other place to post this:).
yesterday a friend showed me a short script in VB and asked me what whas wrong with it.
i would'nt know i dont read VB.
the intention of the script is to solve sudoku puzzles.
so i whas thinking would php be a good script to do this.
altough it isnt designed for it, php does have a lot of calculation function in it.
if anybody has an idea if its possible at all!
please let me know.
and what do you think would be better. VB or PHP?
thanks in advance!

#2 keeB

  • Staff Alumni
  • Advanced Member
  • 1,078 posts
  • LocationCalifornia

Posted 15 March 2006 - 09:06 PM

It can be done in both, of course.. because they both support arrays and that's really the only way you could solve it.

PHP could do this but the limitations are the input data and the ui.. VB has the data and ui part sorted out quite easily, but the back end part would be a little iffy...

Sooooooo, to answer your question? Programmers preference.

Come visit my site to see my latest projects

#3 Barand

  • Moderators
  • Sen . ( ile || sei )
  • 18,017 posts

Posted 15 March 2006 - 09:28 PM

Given PHP's dynamic array abilty and the richness of array functions (array_intersect(), array_diff() etc) I'd rather tackle the Sudoko problem with PHP than with VB.

... or any other problem.
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received


|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users