PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sat Jun 06, 2020 10:38 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: sudoku
PostPosted: Mon Jun 18, 2018 11:01 am 
Offline
Forum Regular
User avatar

Joined: Fri Sep 05, 2008 3:34 pm
Posts: 539
Location: Victoria, BC
I guess if I want to post a puzzle solver I will need to draw the game board, but each cell needs to be editable so I can accept the input to the solver

thoughts?


Top
 Profile  
 
 Post subject: Re: sudoku
PostPosted: Mon Jun 18, 2018 5:25 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13592
Location: New York, NY, US
Use Javascript to make the cells editable. You could write the whole solver in Javascript, or make Ajax calls back to PHP code.

_________________
(#10850)


Top
 Profile  
 
 Post subject: Re: sudoku
PostPosted: Thu Jun 21, 2018 11:45 am 
Offline
Forum Regular
User avatar

Joined: Fri Sep 05, 2008 3:34 pm
Posts: 539
Location: Victoria, BC
ya, I was thinking that after making editable cells I could use more functions to actually solve without needing AJAX etc

I was simply considering how to leverage the logic I have to maybe do an article on game programming etc


Top
 Profile  
 
 Post subject: Re: sudoku
PostPosted: Thu Jun 21, 2018 7:44 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13592
Location: New York, NY, US
Post a link to the article if your write one.

_________________
(#10850)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group