Jump to content

Trisol


Nicgep

Recommended Posts

This summer i was eating lunch at cracker barrel with my dad and i was like i always hate how i cant solve the triangular peg game. I started writing a program to solve it and i use a combination of c and c++ it took me about a week or so to write it.

 

Of course with me being not the greatest programmer i had my dad help me(he's a software engineer and is the genius behind something called databridge) fix the bugs. I wont go into much detail about it but ill tell you a little bit abouit it.(laymens terms)

 

It uses backtracking where it tests a solution and goes as far as it can go with it, then if it does not succeed it starts back at the pouint of furthest progress. I can vary which hole i want to be open and it will find a solution for it. It will usuallyt go through some 3,000 plus steps for each solution then compile the data into a simple 13-19 step solution.

 

If you email me i will send you the code, but i wish that you do not publish it in anyway.

 

If you would like to know more just ask. Sorry i had to put it in N00b terms...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...