Hello There, Guest!
View New Posts  |  View Today's Posts
Challenge #26: Sudoku ppc

  • 0 Vote(s) - 0 Average


08-05-2013, 11:25 AM #11
Icecube
Team Reboot
Team Reboot
Posts: 34 Threads:2 Joined: Jan 2012 Reputation: 5

RE: Sudoku ppc
(08-04-2013, 03:21 AM)Florin Wrote:  telnet then on windows, if windows 8 still has it.
Using telnet is dangerous. Telnet doesn't always show exactly which bytes you got from the server. I remember having problems with telnet and similar challenges in the past.

Use ncat of nmap:
http://nmap.org/ncat/

08-10-2013, 04:56 PM #12
Icecube
Team Reboot
Team Reboot
Posts: 34 Threads:2 Joined: Jan 2012 Reputation: 5

RE: Sudoku ppc
I solved the challenge Both Thumbs Up .
The challenges webpage says that my solution is correct, but it doesn't store the results in view stats (probably related to the websserver problems).

So I will post the sha1sum of the flag that I got:
Code:
$ printf "${flag}" | sha1sum
a7f21e6593dd1a51111b7a41f8b6b2d513f1997c  -

To solve this challenge, you will need to do some programming:
  • Sudoku solver for solving the sudokus.
  • Socket programming to read the sended messages and to send the solutions.

You will need to solve 100 sudoku's before you get the flag.
I needed to run it multiple times, because some sudokus are a bit harder to solve, and the server sends a "So sloooow" message and closes the connection.

I used python to solve the challenge.

A basic socket programming tutorial for python:
http://www.binarytides.com/python-socket...-tutorial/

Socket programming with PHP should also be quite easy to do.
This post was last modified: 08-10-2013, 05:35 PM by Icecube.

08-10-2013, 07:17 PM #13
AceInfinity
Developer
*******
Administrators
Posts: 9,733 Threads:1,026 Joined: Jun 2011 Reputation: 76

RE: Sudoku ppc
Yeah sorry, there are other things that were broken when Nuno Brito had changed some of the permissions for the files here. That is temporary though, there was not much to be done about it, Nuno Brito is working on getting things back the way they were eventually however. I've done a local db backup on my 2TB internal (more reliable than keeping them on the web in my opinion, and maybe safer).

I didn't have time last week, I'll try tomorrow. I did a ton of work today with programming (Crestron - programming projectors, display, audio (DSP's, equalizer's, etc...), lighting, making touchpanel graphics, updating firmware), along with a little bit of Euler programming, forum stuff, and web stuff for a website I'm doing for work. Packing it all into this weekend because my only excuse before was my lack of sleep. (For some reason this week it felt like I was hours behind on sleep everyday after work.) I had work after work some days this past week haha.

I'd like to try to attempt this in C# though. Happy1

Mainly because I already wrote a somewhat basic Sudoku solver class in C#, but I'm not so sure it would be complex enough to solve some of the challenges from this server... If I get to it tonight, we'll see.

Good job btw! Can always count on either you, Joakim, or Wonko to solve a challenge haha.

cheers
This post was last modified: 08-10-2013, 07:23 PM by AceInfinity.


Microsoft MVP .NET Programming - (2012 - Present)
®Crestron DMC-T Certified Automation Programmer

Development Site: aceinfinity.net

 ▲
 ▲ ▲

08-13-2013, 06:12 AM #14
Icecube
Team Reboot
Team Reboot
Posts: 34 Threads:2 Joined: Jan 2012 Reputation: 5

RE: Sudoku ppc
I posted challenge #27. It should be much easier than this challenge., so it might be a good idea to try this one first:
http://tech.reboot.pro/showthread.php?tid=4147

08-13-2013, 12:27 PM #15
KoBE
¯\_(ツ)_/¯
******
Global Moderators
Posts: 4,862 Threads:494 Joined: Jun 2011 Reputation: 67

RE: Sudoku ppc
I'll look into the problem with the stats not counting.

Also, good work on solving this. I planned on doing it via C# (like Ace) but have yet to get around to it. The summation one you posted does look easier so I will surely attempt that one first.

08-13-2013, 07:14 PM #16
AceInfinity
Developer
*******
Administrators
Posts: 9,733 Threads:1,026 Joined: Jun 2011 Reputation: 76

RE: Sudoku ppc
I've started this challenge using C++ instead:


Time to write a Sudoku solver.. The user input for sending data to the server is definitely going to be replaced by an automated sudoku parser and solver though. I'd never get through it with user input lol. I've noticed a little wait time and the server sends a "So sloooow" message before closing the connection.



I don't get this part though:
Quote:Format:
a) "[1-9] [1-9] [1-9]" - coords and input digit
b) "solution [1-9]{81}" - full solution

How can "[1-9]{81}" be a full solution?

edit: I'm not getting the input yet, and that is vital to solving this lol:


edit: I figured it out for inputting data finally... Shouldn't have taken that long. At first I thought the coordinates meant grid, then position within the grid, then I tried with the brackets around each 3 numbers, which might have been my biggest mistake. ({X} {Y} {Number})

Still don't get format b) though.
This post was last modified: 08-13-2013, 11:49 PM by AceInfinity.


Microsoft MVP .NET Programming - (2012 - Present)
®Crestron DMC-T Certified Automation Programmer

Development Site: aceinfinity.net

 ▲
 ▲ ▲

08-14-2013, 03:47 PM #17
AceInfinity
Developer
*******
Administrators
Posts: 9,733 Threads:1,026 Joined: Jun 2011 Reputation: 76

RE: Sudoku ppc
Solved it.

SHA-256: 22a629bbf5ff5d6ef9ea5e2ea697520363b63bf4fd490d7415e6cf945fade154

cheers
This post was last modified: 08-14-2013, 03:47 PM by AceInfinity.


Microsoft MVP .NET Programming - (2012 - Present)
®Crestron DMC-T Certified Automation Programmer

Development Site: aceinfinity.net

 ▲
 ▲ ▲




Forum Jump:


Possibly Related Threads...
Thread Author Replies Views Last Post
  Challenge #28 - A Bashing Challenge Holmes.Sherlock 1 3,355 01-31-2015, 01:57 PM
Last Post: Holmes.Sherlock
  Challenge #27: Addition PPC Icecube 17 9,693 10-31-2013, 09:25 AM
Last Post: AceInfinity
  [Question] Quick Google Challenge! Don't cheat! Florin 9 5,454 07-28-2012, 01:09 AM
Last Post: Florin
  Challenge #13 - Can you find the key? AceInfinity 3 2,668 05-17-2012, 08:05 PM
Last Post: AceInfinity
  Challenge #1 - Is she alone? AceInfinity 20 9,645 04-21-2012, 07:26 PM
Last Post: AceInfinity


Users browsing this thread: 1 Guest(s)