Page 4 of 5 <12345>
Topic Options
#70124 - 2002-09-24 07:29 PM Re: KixGolf Results/Code
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
The second bug invloves a goto from within a nested "FOR" loop. the bug is discussed in more detail here: GOTO/Endfunction BUG
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#70125 - 2002-09-24 08:05 PM Re: KixGolf Results/Code
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
The function of Quit isn't an error since the manual states this was the intented purpose of Quit (i.e "Exits Kixtart"). It was intented to have a different function from return.
_________________________
Jack

Top
#70126 - 2002-09-24 08:26 PM Re: KixGolf Results/Code
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
Anyone burned out and needing some Mini Putt relief? [Wink]
Mini Putt
_________________________
We all live in a Yellow Subroutine...

Top
#70127 - 2002-09-24 08:41 PM Re: KixGolf Results/Code
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Waltz,

Cute, but there is something wrong with their physics formulaes. When you hit the ball hard the ball comes off the wall in really weird directions. It can come off the wall in a 90 degree angle even when it hits at a 45 degree angle.

This is done by MIT? Maybe they introduce random spins on the ball.

[ 24. September 2002, 20:44: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#70128 - 2002-09-24 08:46 PM Re: KixGolf Results/Code
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
Well, it's been my observation that golf and beer go hand-in-hand more often than not... [Smile]
_________________________
We all live in a Yellow Subroutine...

Top
#70129 - 2002-09-24 08:51 PM Re: KixGolf Results/Code
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Yes, a beer would help.
_________________________
Jack

Top
#70130 - 2002-09-24 11:38 PM Re: KixGolf Results/Code
Fernando Madruga Offline
Starting to like KiXtart

Registered: 2002-08-21
Posts: 149
Loc: Coimbra.Portugal.Europe.Earth....
AJH: you're right about the 1169! I don't know how I missed that one! So, that one is DEFINITELY going into the new test program... [Smile]
_________________________
Later,   [b]Mad[/b]ruga

Top
#70131 - 2002-09-25 12:36 AM Re: KixGolf Results/Code
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Madruga,

I wrote an algorithm that uses integer math to get the solutions & it get different results from your analysis. I get 466 solution sets not 465 & it seems 6 of the 7 parenthesis types are necessary to derive all the solutions. {The only type not necessary is a (b c) d)}

I made a few modifications & I am rerunning the test. I will let you know the results. My first pass suggests this is the complete solution set.

code:
In => 0, 0, 0, 0; Out => 
In => 0, 0, 0, 1; Out =>
In => 0, 0, 0, 2; Out =>
In => 0, 0, 0, 3; Out =>
In => 0, 0, 0, 4; Out =>
In => 0, 0, 0, 5; Out =>
In => 0, 0, 0, 6; Out =>
In => 0, 0, 0, 7; Out =>
In => 0, 0, 0, 8; Out =>
In => 0, 0, 0, 9; Out =>
In => 0, 0, 1, 1; Out =>
In => 0, 0, 1, 2; Out =>
In => 0, 0, 1, 3; Out =>
In => 0, 0, 1, 4; Out =>
In => 0, 0, 1, 5; Out =>
In => 0, 0, 1, 6; Out =>
In => 0, 0, 1, 7; Out =>
In => 0, 0, 1, 8; Out =>
In => 0, 0, 1, 9; Out =>
In => 0, 0, 2, 2; Out =>
In => 0, 0, 2, 3; Out =>
In => 0, 0, 2, 4; Out =>
In => 0, 0, 2, 5; Out =>
In => 0, 0, 2, 6; Out =>
In => 0, 0, 2, 7; Out =>
In => 0, 0, 2, 8; Out =>
In => 0, 0, 2, 9; Out =>
In => 0, 0, 3, 3; Out =>
In => 0, 0, 3, 4; Out =>
In => 0, 0, 3, 5; Out =>
In => 0, 0, 3, 6; Out =>
In => 0, 0, 3, 7; Out =>
In => 0, 0, 3, 8; Out => 0 + 0 + 3 * 8
In => 0, 0, 3, 9; Out =>
In => 0, 0, 4, 4; Out =>
In => 0, 0, 4, 5; Out =>
In => 0, 0, 4, 6; Out => 0 + 0 + 4 * 6
In => 0, 0, 4, 7; Out =>
In => 0, 0, 4, 8; Out =>
In => 0, 0, 4, 9; Out =>
In => 0, 0, 5, 5; Out =>
In => 0, 0, 5, 6; Out =>
In => 0, 0, 5, 7; Out =>
In => 0, 0, 5, 8; Out =>
In => 0, 0, 5, 9; Out =>
In => 0, 0, 6, 6; Out =>
In => 0, 0, 6, 7; Out =>
In => 0, 0, 6, 8; Out =>
In => 0, 0, 6, 9; Out =>
In => 0, 0, 7, 7; Out =>
In => 0, 0, 7, 8; Out =>
In => 0, 0, 7, 9; Out =>
In => 0, 0, 8, 8; Out =>
In => 0, 0, 8, 9; Out =>
In => 0, 0, 9, 9; Out =>
In => 0, 1, 1, 1; Out =>
In => 0, 1, 1, 2; Out =>
In => 0, 1, 1, 3; Out =>
In => 0, 1, 1, 4; Out =>
In => 0, 1, 1, 5; Out =>
In => 0, 1, 1, 6; Out =>
In => 0, 1, 1, 7; Out =>
In => 0, 1, 1, 8; Out =>
In => 0, 1, 1, 9; Out =>
In => 0, 1, 2, 2; Out =>
In => 0, 1, 2, 3; Out =>
In => 0, 1, 2, 4; Out =>
In => 0, 1, 2, 5; Out =>
In => 0, 1, 2, 6; Out =>
In => 0, 1, 2, 7; Out =>
In => 0, 1, 2, 8; Out => ( 0 + 1 + 2 ) * 8
In => 0, 1, 2, 9; Out =>
In => 0, 1, 3, 3; Out =>
In => 0, 1, 3, 4; Out =>
In => 0, 1, 3, 5; Out =>
In => 0, 1, 3, 6; Out => ( 0 + 1 + 3 ) * 6
In => 0, 1, 3, 7; Out => ( 0 + 1 + 7 ) * 3
In => 0, 1, 3, 8; Out => 0 + 1 * 3 * 8
In => 0, 1, 3, 9; Out => ( 0 - 1 + 9 ) * 3
In => 0, 1, 4, 4; Out =>
In => 0, 1, 4, 5; Out => ( 0 + 1 + 5 ) * 4
In => 0, 1, 4, 6; Out => 0 + 1 * 4 * 6
In => 0, 1, 4, 7; Out => ( 0 - 1 + 7 ) * 4
In => 0, 1, 4, 8; Out => ( 0 - 1 + 4 ) * 8
In => 0, 1, 4, 9; Out =>
In => 0, 1, 5, 5; Out => 0 - 1 + 5 * 5
In => 0, 1, 5, 6; Out => ( 0 - 1 + 5 ) * 6
In => 0, 1, 5, 7; Out =>
In => 0, 1, 5, 8; Out =>
In => 0, 1, 5, 9; Out =>
In => 0, 1, 6, 6; Out =>
In => 0, 1, 6, 7; Out =>
In => 0, 1, 6, 8; Out =>
In => 0, 1, 6, 9; Out =>
In => 0, 1, 7, 7; Out =>
In => 0, 1, 7, 8; Out =>
In => 0, 1, 7, 9; Out =>
In => 0, 1, 8, 8; Out =>
In => 0, 1, 8, 9; Out =>
In => 0, 1, 9, 9; Out =>
In => 0, 2, 2, 2; Out =>
In => 0, 2, 2, 3; Out =>
In => 0, 2, 2, 4; Out =>
In => 0, 2, 2, 5; Out =>
In => 0, 2, 2, 6; Out => 0 + 2 * 2 * 6
In => 0, 2, 2, 7; Out =>
In => 0, 2, 2, 8; Out =>
In => 0, 2, 2, 9; Out =>
In => 0, 2, 3, 3; Out =>
In => 0, 2, 3, 4; Out => 0 + 2 * 3 * 4
In => 0, 2, 3, 5; Out =>
In => 0, 2, 3, 6; Out => ( 0 + 2 + 6 ) * 3
In => 0, 2, 3, 7; Out =>
In => 0, 2, 3, 8; Out => 0 / 2 + 3 * 8
In => 0, 2, 3, 9; Out => ( 0 + 3 + 9 ) * 2
In => 0, 2, 4, 4; Out => ( 0 + 2 + 4 ) * 4
In => 0, 2, 4, 5; Out =>
In => 0, 2, 4, 6; Out => 0 / 2 + 4 * 6
In => 0, 2, 4, 7; Out =>
In => 0, 2, 4, 8; Out => ( 0 - 2 + 8 ) * 4
In => 0, 2, 4, 9; Out =>
In => 0, 2, 5, 5; Out =>
In => 0, 2, 5, 6; Out =>
In => 0, 2, 5, 7; Out => ( 0 + 5 + 7 ) * 2
In => 0, 2, 5, 8; Out => ( 0 - 2 + 5 ) * 8
In => 0, 2, 5, 9; Out =>
In => 0, 2, 6, 6; Out => ( 0 - 2 + 6 ) * 6
In => 0, 2, 6, 7; Out =>
In => 0, 2, 6, 8; Out => 0 + 6 * 8 / 2
In => 0, 2, 6, 9; Out => 0 + 2 * 9 + 6
In => 0, 2, 7, 7; Out =>
In => 0, 2, 7, 8; Out =>
In => 0, 2, 7, 9; Out =>
In => 0, 2, 8, 8; Out => 0 + 2 * 8 + 8
In => 0, 2, 8, 9; Out =>
In => 0, 2, 9, 9; Out =>
In => 0, 3, 3, 3; Out =>
In => 0, 3, 3, 4; Out => ( 0 + 3 + 3 ) * 4
In => 0, 3, 3, 5; Out => ( 0 + 3 + 5 ) * 3
In => 0, 3, 3, 6; Out =>
In => 0, 3, 3, 7; Out => 0 + 3 + 3 * 7
In => 0, 3, 3, 8; Out => 0 / 3 + 3 * 8
In => 0, 3, 3, 9; Out => 0 - 3 + 3 * 9
In => 0, 3, 4, 4; Out => ( 0 + 4 + 4 ) * 3
In => 0, 3, 4, 5; Out =>
In => 0, 3, 4, 6; Out => 0 / 3 + 4 * 6
In => 0, 3, 4, 7; Out =>
In => 0, 3, 4, 8; Out => 0 / 4 + 8 * 3
In => 0, 3, 4, 9; Out => ( 0 - 3 + 9 ) * 4
In => 0, 3, 5, 5; Out =>
In => 0, 3, 5, 6; Out =>
In => 0, 3, 5, 7; Out =>
In => 0, 3, 5, 8; Out => 0 / 5 + 8 * 3
In => 0, 3, 5, 9; Out => 0 + 3 * 5 + 9
In => 0, 3, 6, 6; Out => 0 + 3 * 6 + 6
In => 0, 3, 6, 7; Out => ( 0 - 3 + 7 ) * 6
In => 0, 3, 6, 8; Out => 0 / 6 + 8 * 3
In => 0, 3, 6, 9; Out =>
In => 0, 3, 7, 7; Out =>
In => 0, 3, 7, 8; Out => 0 / 7 + 8 * 3
In => 0, 3, 7, 9; Out =>
In => 0, 3, 8, 8; Out => 0 / 8 + 8 * 3
In => 0, 3, 8, 9; Out => 0 + 8 * 9 / 3
In => 0, 3, 9, 9; Out =>
In => 0, 4, 4, 4; Out =>
In => 0, 4, 4, 5; Out => 0 + 4 + 4 * 5
In => 0, 4, 4, 6; Out => 0 / 4 + 4 * 6
In => 0, 4, 4, 7; Out => 0 - 4 + 4 * 7
In => 0, 4, 4, 8; Out => 0 + 4 * 4 + 8
In => 0, 4, 4, 9; Out =>
In => 0, 4, 5, 5; Out =>
In => 0, 4, 5, 6; Out => 0 / 5 + 6 * 4
In => 0, 4, 5, 7; Out =>
In => 0, 4, 5, 8; Out =>
In => 0, 4, 5, 9; Out =>
In => 0, 4, 6, 6; Out => 0 / 6 + 6 * 4
In => 0, 4, 6, 7; Out => 0 / 7 + 4 * 6
In => 0, 4, 6, 8; Out => 0 / 8 + 4 * 6
In => 0, 4, 6, 9; Out => 0 / 9 + 4 * 6
In => 0, 4, 7, 7; Out =>
In => 0, 4, 7, 8; Out => ( 0 - 4 + 7 ) * 8
In => 0, 4, 7, 9; Out =>
In => 0, 4, 8, 8; Out => 0 + 4 * 8 - 8
In => 0, 4, 8, 9; Out =>
In => 0, 4, 9, 9; Out =>
In => 0, 5, 5, 5; Out =>
In => 0, 5, 5, 6; Out =>
In => 0, 5, 5, 7; Out =>
In => 0, 5, 5, 8; Out =>
In => 0, 5, 5, 9; Out =>
In => 0, 5, 6, 6; Out => 0 + 5 * 6 - 6
In => 0, 5, 6, 7; Out =>
In => 0, 5, 6, 8; Out =>
In => 0, 5, 6, 9; Out => ( 0 - 5 + 9 ) * 6
In => 0, 5, 7, 7; Out =>
In => 0, 5, 7, 8; Out =>
In => 0, 5, 7, 9; Out =>
In => 0, 5, 8, 8; Out => ( 0 - 5 + 8 ) * 8
In => 0, 5, 8, 9; Out =>
In => 0, 5, 9, 9; Out =>
In => 0, 6, 6, 6; Out =>
In => 0, 6, 6, 7; Out =>
In => 0, 6, 6, 8; Out =>
In => 0, 6, 6, 9; Out =>
In => 0, 6, 7, 7; Out =>
In => 0, 6, 7, 8; Out =>
In => 0, 6, 7, 9; Out =>
In => 0, 6, 8, 8; Out =>
In => 0, 6, 8, 9; Out => ( 0 - 6 + 9 ) * 8
In => 0, 6, 9, 9; Out => 0 + 6 + 9 + 9
In => 0, 7, 7, 7; Out =>
In => 0, 7, 7, 8; Out =>
In => 0, 7, 7, 9; Out =>
In => 0, 7, 8, 8; Out =>
In => 0, 7, 8, 9; Out => 0 + 7 + 8 + 9
In => 0, 7, 9, 9; Out =>
In => 0, 8, 8, 8; Out => 0 + 8 + 8 + 8
In => 0, 8, 8, 9; Out =>
In => 0, 8, 9, 9; Out =>
In => 0, 9, 9, 9; Out =>
In => 1, 1, 1, 1; Out =>
In => 1, 1, 1, 2; Out =>
In => 1, 1, 1, 3; Out =>
In => 1, 1, 1, 4; Out =>
In => 1, 1, 1, 5; Out =>
In => 1, 1, 1, 6; Out =>
In => 1, 1, 1, 7; Out =>
In => 1, 1, 1, 8; Out => ( 1 + 1 + 1 ) * 8
In => 1, 1, 1, 9; Out =>
In => 1, 1, 2, 2; Out =>
In => 1, 1, 2, 3; Out =>
In => 1, 1, 2, 4; Out =>
In => 1, 1, 2, 5; Out =>
In => 1, 1, 2, 6; Out => ( 1 + 1 + 2 ) * 6
In => 1, 1, 2, 7; Out => ( 1 + 2 ) * ( 7 + 1 )
In => 1, 1, 2, 8; Out => ( 1 + 1 * 2 ) * 8
In => 1, 1, 2, 9; Out => ( 1 + 2 ) * ( 9 - 1 )
In => 1, 1, 3, 3; Out =>
In => 1, 1, 3, 4; Out => 3 * 4 * ( 1 + 1 )
In => 1, 1, 3, 5; Out => ( 1 + 3 ) * ( 5 + 1 )
In => 1, 1, 3, 6; Out => ( 1 + 1 * 3 ) * 6
In => 1, 1, 3, 7; Out => ( 1 + 1 * 7 ) * 3
In => 1, 1, 3, 8; Out => 1 - 1 + 3 * 8
In => 1, 1, 3, 9; Out => ( 1 * 9 - 1 ) * 3
In => 1, 1, 4, 4; Out => ( 1 + 1 + 4 ) * 4
In => 1, 1, 4, 5; Out => ( 1 + 1 * 5 ) * 4
In => 1, 1, 4, 6; Out => 1 - 1 + 4 * 6
In => 1, 1, 4, 7; Out => ( 1 * 7 - 1 ) * 4
In => 1, 1, 4, 8; Out => ( 1 * 4 - 1 ) * 8
In => 1, 1, 4, 9; Out => ( 1 - 4 ) * ( 1 - 9 )
In => 1, 1, 5, 5; Out => 1 * 5 * 5 - 1
In => 1, 1, 5, 6; Out => ( 1 * 5 - 1 ) * 6
In => 1, 1, 5, 7; Out => ( 1 + 1 ) * ( 5 + 7 )
In => 1, 1, 5, 8; Out => ( 5 - 1 - 1 ) * 8
In => 1, 1, 5, 9; Out =>
In => 1, 1, 6, 6; Out => ( 6 - 1 - 1 ) * 6
In => 1, 1, 6, 7; Out =>
In => 1, 1, 6, 8; Out => 6 * 8 / ( 1 + 1 )
In => 1, 1, 6, 9; Out => 6 + 9 * ( 1 + 1 )
In => 1, 1, 7, 7; Out =>
In => 1, 1, 7, 8; Out =>
In => 1, 1, 7, 9; Out =>
In => 1, 1, 8, 8; Out => 8 + 8 * ( 1 + 1 )
In => 1, 1, 8, 9; Out =>
In => 1, 1, 9, 9; Out =>
In => 1, 2, 2, 2; Out =>
In => 1, 2, 2, 3; Out =>
In => 1, 2, 2, 4; Out => 2 * 4 * ( 1 + 2 )
In => 1, 2, 2, 5; Out => 2 * 2 * ( 5 + 1 )
In => 1, 2, 2, 6; Out => 1 * 2 * 2 * 6
In => 1, 2, 2, 7; Out => 2 * 2 * ( 7 - 1 )
In => 1, 2, 2, 8; Out => ( 2 + 2 - 1 ) * 8
In => 1, 2, 2, 9; Out => ( 1 + 2 + 9 ) * 2
In => 1, 2, 3, 3; Out => 2 * 3 * ( 3 + 1 )
In => 1, 2, 3, 4; Out => 1 * 2 * 3 * 4
In => 1, 2, 3, 5; Out => ( 1 + 2 + 5 ) * 3
In => 1, 2, 3, 6; Out => ( 1 * 2 + 6 ) * 3
In => 1, 2, 3, 7; Out => 1 + 2 + 3 * 7
In => 1, 2, 3, 8; Out => ( 1 + 3 + 8 ) * 2
In => 1, 2, 3, 9; Out => 3 * 9 - 1 - 2
In => 1, 2, 4, 4; Out => ( 1 * 2 + 4 ) * 4
In => 1, 2, 4, 5; Out => ( 2 + 5 - 1 ) * 4
In => 1, 2, 4, 6; Out => 4 * 6 / ( 2 - 1 )
In => 1, 2, 4, 7; Out => ( 1 - 2 + 7 ) * 4
In => 1, 2, 4, 8; Out => ( 1 - 2 + 4 ) * 8
In => 1, 2, 4, 9; Out => ( 4 + 9 - 1 ) * 2
In => 1, 2, 5, 5; Out => 1 - 2 + 5 * 5
In => 1, 2, 5, 6; Out => ( 1 - 2 + 5 ) * 6
In => 1, 2, 5, 7; Out => ( 1 * 5 + 7 ) * 2
In => 1, 2, 5, 8; Out => ( 1 * 5 - 2 ) * 8
In => 1, 2, 5, 9; Out => 1 + 2 * 9 + 5
In => 1, 2, 6, 6; Out => ( 1 * 6 + 6 ) * 2
In => 1, 2, 6, 7; Out => ( 6 + 7 - 1 ) * 2
In => 1, 2, 6, 8; Out => 1 / 2 * 6 * 8
In => 1, 2, 6, 9; Out => 1 * 2 * 9 + 6
In => 1, 2, 7, 7; Out => ( 7 * 7 - 1 ) / 2
In => 1, 2, 7, 8; Out => 1 + 2 * 8 + 7
In => 1, 2, 7, 9; Out => 1 + 2 * 7 + 9
In => 1, 2, 8, 8; Out => 1 * 2 * 8 + 8
In => 1, 2, 8, 9; Out => 2 * 8 + 9 - 1
In => 1, 2, 9, 9; Out =>
In => 1, 3, 3, 3; Out => ( 3 * 3 - 1 ) * 3
In => 1, 3, 3, 4; Out => ( 1 * 3 + 3 ) * 4
In => 1, 3, 3, 5; Out => ( 1 * 3 + 5 ) * 3
In => 1, 3, 3, 6; Out => ( 3 + 6 - 1 ) * 3
In => 1, 3, 3, 7; Out => 1 * 3 + 3 * 7
In => 1, 3, 3, 8; Out => 3 + 3 * ( 8 - 1 )
In => 1, 3, 3, 9; Out => 1 * 3 * 9 - 3
In => 1, 3, 4, 4; Out => ( 1 * 4 + 4 ) * 3
In => 1, 3, 4, 5; Out => 1 + 3 + 4 * 5
In => 1, 3, 4, 6; Out => 6 / ( 1 - 3 / 4 )
In => 1, 3, 4, 7; Out => 3 * 7 - 1 + 4
In => 1, 3, 4, 8; Out => ( 1 - 3 + 8 ) * 4
In => 1, 3, 4, 9; Out => 1 + 3 * 9 - 4
In => 1, 3, 5, 5; Out =>
In => 1, 3, 5, 6; Out => 1 + 3 * 6 + 5
In => 1, 3, 5, 7; Out => ( 1 + 5 ) * ( 7 - 3 )
In => 1, 3, 5, 8; Out => 1 + 3 * 5 + 8
In => 1, 3, 5, 9; Out => 1 * 3 * 5 + 9
In => 1, 3, 6, 6; Out => 1 * 3 * 6 + 6
In => 1, 3, 6, 7; Out => 3 * 6 + 7 - 1
In => 1, 3, 6, 8; Out => ( 1 + 6 / 3 ) * 8
In => 1, 3, 6, 9; Out => ( 1 + 9 / 3 ) * 6
In => 1, 3, 7, 7; Out => ( 1 - 7 ) * ( 3 - 7 )
In => 1, 3, 7, 8; Out => ( 7 - 1 - 3 ) * 8
In => 1, 3, 7, 9; Out => 9 / 3 * ( 1 + 7 )
In => 1, 3, 8, 8; Out => 8 - 8 * ( 1 - 3 )
In => 1, 3, 8, 9; Out => 1 / 3 * 8 * 9
In => 1, 3, 9, 9; Out => 9 / 3 * ( 9 - 1 )
In => 1, 4, 4, 4; Out => 4 + 4 * ( 4 + 1 )
In => 1, 4, 4, 5; Out => 1 * 4 + 4 * 5
In => 1, 4, 4, 6; Out => 4 + 4 * ( 6 - 1 )
In => 1, 4, 4, 7; Out => 1 + 4 * 4 + 7
In => 1, 4, 4, 8; Out => 1 * 4 * 4 + 8
In => 1, 4, 4, 9; Out => 4 * 4 + 9 - 1
In => 1, 4, 5, 5; Out => 4 * 5 + 5 - 1
In => 1, 4, 5, 6; Out => 4 / ( 1 - 5 / 6 )
In => 1, 4, 5, 7; Out => 1 + 4 * 7 - 5
In => 1, 4, 5, 8; Out => 8 - 4 * ( 1 - 5 )
In => 1, 4, 5, 9; Out => 9 - 5 * ( 1 - 4 )
In => 1, 4, 6, 6; Out => 6 - 6 * ( 1 - 4 )
In => 1, 4, 6, 7; Out => ( 1 - 4 + 7 ) * 6
In => 1, 4, 6, 8; Out => ( 1 - 4 + 6 ) * 8
In => 1, 4, 6, 9; Out => ( 9 - 1 - 4 ) * 6
In => 1, 4, 7, 7; Out => ( 1 + 7 ) * ( 7 - 4 )
In => 1, 4, 7, 8; Out => 4 * 8 - 1 - 7
In => 1, 4, 7, 9; Out => ( 1 - 9 ) * ( 4 - 7 )
In => 1, 4, 8, 8; Out => 1 * 4 * 8 - 8
In => 1, 4, 8, 9; Out => 1 + 4 * 8 - 9
In => 1, 4, 9, 9; Out =>
In => 1, 5, 5, 5; Out => ( 5 - 1 / 5 ) * 5
In => 1, 5, 5, 6; Out => 5 * 6 - 1 - 5
In => 1, 5, 5, 7; Out =>
In => 1, 5, 5, 8; Out =>
In => 1, 5, 5, 9; Out => ( 1 + 5 ) * ( 9 - 5 )
In => 1, 5, 6, 6; Out => 1 * 5 * 6 - 6
In => 1, 5, 6, 7; Out => 1 + 5 * 6 - 7
In => 1, 5, 6, 8; Out => ( 1 - 5 + 8 ) * 6
In => 1, 5, 6, 9; Out => ( 1 * 9 - 5 ) * 6
In => 1, 5, 7, 7; Out =>
In => 1, 5, 7, 8; Out => ( 1 - 5 + 7 ) * 8
In => 1, 5, 7, 9; Out => ( 1 - 7 ) * ( 5 - 9 )
In => 1, 5, 8, 8; Out => ( 1 * 8 - 5 ) * 8
In => 1, 5, 8, 9; Out => ( 9 - 1 - 5 ) * 8
In => 1, 5, 9, 9; Out => 1 + 5 + 9 + 9
In => 1, 6, 6, 6; Out => ( 6 - 1 ) * 6 - 6
In => 1, 6, 6, 7; Out =>
In => 1, 6, 6, 8; Out => 6 / ( 1 - 6 / 8 )
In => 1, 6, 6, 9; Out => ( 1 - 6 + 9 ) * 6
In => 1, 6, 7, 7; Out =>
In => 1, 6, 7, 8; Out =>
In => 1, 6, 7, 9; Out => ( 1 + 7 ) * ( 9 - 6 )
In => 1, 6, 8, 8; Out => ( 1 - 6 + 8 ) * 8
In => 1, 6, 8, 9; Out => 1 + 6 + 8 + 9
In => 1, 6, 9, 9; Out => 1 * 6 + 9 + 9
In => 1, 7, 7, 7; Out =>
In => 1, 7, 7, 8; Out =>
In => 1, 7, 7, 9; Out => 1 + 7 + 7 + 9
In => 1, 7, 8, 8; Out => 1 + 7 + 8 + 8
In => 1, 7, 8, 9; Out => 1 * 7 + 8 + 9
In => 1, 7, 9, 9; Out => 7 + 9 + 9 - 1
In => 1, 8, 8, 8; Out => 1 * 8 + 8 + 8
In => 1, 8, 8, 9; Out => 8 + 8 + 9 - 1
In => 1, 8, 9, 9; Out =>
In => 1, 9, 9, 9; Out =>
In => 2, 2, 2, 2; Out =>
In => 2, 2, 2, 3; Out => 2 * 2 * 2 * 3
In => 2, 2, 2, 4; Out => ( 2 + 2 + 2 ) * 4
In => 2, 2, 2, 5; Out => ( 2 + 2 * 5 ) * 2
In => 2, 2, 2, 6; Out =>
In => 2, 2, 2, 7; Out => ( 2 * 7 - 2 ) * 2
In => 2, 2, 2, 8; Out => ( 2 + 2 / 2 ) * 8
In => 2, 2, 2, 9; Out => 2 + 2 * ( 2 + 9 )
In => 2, 2, 3, 3; Out => ( 2 + 2 * 3 ) * 3
In => 2, 2, 3, 4; Out => ( 2 + 2 + 4 ) * 3
In => 2, 2, 3, 5; Out => ( 2 * 5 - 2 ) * 3
In => 2, 2, 3, 6; Out => ( 2 / 2 + 3 ) * 6
In => 2, 2, 3, 7; Out => ( 2 / 2 + 7 ) * 3
In => 2, 2, 3, 8; Out => 2 - 2 + 3 * 8
In => 2, 2, 3, 9; Out => 2 * 3 + 9 * 2
In => 2, 2, 4, 4; Out => ( 2 * 4 + 4 ) * 2
In => 2, 2, 4, 5; Out => 2 + 2 + 4 * 5
In => 2, 2, 4, 6; Out => 2 - 2 + 4 * 6
In => 2, 2, 4, 7; Out => 2 * 2 * 7 - 4
In => 2, 2, 4, 8; Out => 2 * 2 * 4 + 8
In => 2, 2, 4, 9; Out => 2 + 2 * 9 + 4
In => 2, 2, 5, 5; Out => 5 * 5 - 2 / 2
In => 2, 2, 5, 6; Out => ( 5 - 2 / 2 ) * 6
In => 2, 2, 5, 7; Out => 2 * 5 + 7 * 2
In => 2, 2, 5, 8; Out => ( 5 + 8 ) * 2 - 2
In => 2, 2, 5, 9; Out => ( 5 + 9 - 2 ) * 2
In => 2, 2, 6, 6; Out => 2 * 6 + 6 * 2
In => 2, 2, 6, 7; Out => 6 + 2 * ( 2 + 7 )
In => 2, 2, 6, 8; Out => 2 + 2 * 8 + 6
In => 2, 2, 6, 9; Out => ( 2 * 9 - 6 ) * 2
In => 2, 2, 7, 7; Out => ( 7 + 7 - 2 ) * 2
In => 2, 2, 7, 8; Out => 2 + 2 * 7 + 8
In => 2, 2, 7, 9; Out =>
In => 2, 2, 8, 8; Out => 2 * 2 * 8 - 8
In => 2, 2, 8, 9; Out => 2 * 9 - 2 + 8
In => 2, 2, 9, 9; Out =>
In => 2, 3, 3, 3; Out => ( 2 + 3 + 3 ) * 3
In => 2, 3, 3, 4; Out =>
In => 2, 3, 3, 5; Out => ( 3 * 5 - 3 ) * 2
In => 2, 3, 3, 6; Out => 2 * 3 + 3 * 6
In => 2, 3, 3, 7; Out => ( 3 + 7 - 2 ) * 3
In => 2, 3, 3, 8; Out => ( 2 + 3 / 3 ) * 8
In => 2, 3, 3, 9; Out => 2 * 9 + 3 + 3
In => 2, 3, 4, 4; Out => 3 * 4 * 4 / 2
In => 2, 3, 4, 5; Out => ( 3 + 4 + 5 ) * 2
In => 2, 3, 4, 6; Out => 2 + 3 * 6 + 4
In => 2, 3, 4, 7; Out => ( 2 - 3 + 7 ) * 4
In => 2, 3, 4, 8; Out => ( 2 - 3 + 4 ) * 8
In => 2, 3, 4, 9; Out => 2 / 3 * 4 * 9
In => 2, 3, 5, 5; Out => 2 - 3 + 5 * 5
In => 2, 3, 5, 6; Out => 2 * 3 * 5 - 6
In => 2, 3, 5, 7; Out => 2 + 3 * 5 + 7
In => 2, 3, 5, 8; Out => 2 * 8 + 3 + 5
In => 2, 3, 5, 9; Out => 2 + 3 * 9 - 5
In => 2, 3, 6, 6; Out => 2 / 3 * 6 * 6
In => 2, 3, 6, 7; Out => 3 + 6 * 7 / 2
In => 2, 3, 6, 8; Out => 3 * 6 + 8 - 2
In => 2, 3, 6, 9; Out => 2 * 6 + 9 + 3
In => 2, 3, 7, 7; Out => 2 * 7 + 7 + 3
In => 2, 3, 7, 8; Out => ( 7 + 8 - 3 ) * 2
In => 2, 3, 7, 9; Out => ( 3 * 7 - 9 ) * 2
In => 2, 3, 8, 8; Out => ( 2 * 8 - 8 ) * 3
In => 2, 3, 8, 9; Out => ( 9 - 2 * 3 ) * 8
In => 2, 3, 9, 9; Out => 2 * 3 + 9 + 9
In => 2, 4, 4, 4; Out => 2 * 4 + 4 * 4
In => 2, 4, 4, 5; Out => ( 2 * 5 - 4 ) * 4
In => 2, 4, 4, 6; Out => 2 + 4 * 4 + 6
In => 2, 4, 4, 7; Out => 2 * 4 * ( 7 - 4 )
In => 2, 4, 4, 8; Out => 2 * 4 * 4 - 8
In => 2, 4, 4, 9; Out => ( 9 - 2 ) * 4 - 4
In => 2, 4, 5, 5; Out => 4 + 2 * ( 5 + 5 )
In => 2, 4, 5, 6; Out => 4 * 5 + 6 - 2
In => 2, 4, 5, 7; Out => 4 / 2 * ( 5 + 7 )
In => 2, 4, 5, 8; Out => 4 + 5 * 8 / 2
In => 2, 4, 5, 9; Out => ( 2 - 5 + 9 ) * 4
In => 2, 4, 6, 6; Out => ( 2 - 4 + 6 ) * 6
In => 2, 4, 6, 7; Out => 2 + 4 * 7 - 6
In => 2, 4, 6, 8; Out => 2 / 4 * 6 * 8
In => 2, 4, 6, 9; Out => 4 * 9 - 2 * 6
In => 2, 4, 7, 7; Out => ( 7 + 7 ) * 2 - 4
In => 2, 4, 7, 8; Out => 4 * 7 - 8 / 2
In => 2, 4, 7, 9; Out => 2 * 4 + 7 + 9
In => 2, 4, 8, 8; Out => 2 * 4 + 8 + 8
In => 2, 4, 8, 9; Out => ( 9 - 2 - 4 ) * 8
In => 2, 4, 9, 9; Out => 2 + 4 + 9 + 9
In => 2, 5, 5, 5; Out =>
In => 2, 5, 5, 6; Out =>
In => 2, 5, 5, 7; Out => 2 * 7 + 5 + 5
In => 2, 5, 5, 8; Out => ( 2 + 5 / 5 ) * 8
In => 2, 5, 5, 9; Out => 2 * 5 + 5 + 9
In => 2, 5, 6, 6; Out => ( 2 * 5 - 6 ) * 6
In => 2, 5, 6, 7; Out => 2 * 6 + 7 + 5
In => 2, 5, 6, 8; Out => 2 + 5 * 6 - 8
In => 2, 5, 6, 9; Out => 5 * 6 / 2 + 9
In => 2, 5, 7, 7; Out => 2 * 5 + 7 + 7
In => 2, 5, 7, 8; Out => ( 2 * 5 - 7 ) * 8
In => 2, 5, 7, 9; Out => 5 * 7 - 9 - 2
In => 2, 5, 8, 8; Out => 5 * 8 - 8 * 2
In => 2, 5, 8, 9; Out => 2 + 5 + 8 + 9
In => 2, 5, 9, 9; Out =>
In => 2, 6, 6, 6; Out => 2 * 6 + 6 + 6
In => 2, 6, 6, 7; Out => ( 6 + 6 * 7 ) / 2
In => 2, 6, 6, 8; Out => ( 2 + 6 / 6 ) * 8
In => 2, 6, 6, 9; Out => ( 6 * 9 - 6 ) / 2
In => 2, 6, 7, 7; Out =>
In => 2, 6, 7, 8; Out => ( 2 - 6 + 7 ) * 8
In => 2, 6, 7, 9; Out => 2 + 6 + 7 + 9
In => 2, 6, 8, 8; Out => 2 + 6 + 8 + 8
In => 2, 6, 8, 9; Out => 2 / 6 * 8 * 9
In => 2, 6, 9, 9; Out => ( 2 + 6 / 9 ) * 9
In => 2, 7, 7, 7; Out =>
In => 2, 7, 7, 8; Out => 2 + 7 + 7 + 8
In => 2, 7, 7, 9; Out =>
In => 2, 7, 8, 8; Out => ( 2 - 7 + 8 ) * 8
In => 2, 7, 8, 9; Out => ( 7 + 9 ) * 2 - 8
In => 2, 7, 9, 9; Out =>
In => 2, 8, 8, 8; Out => 8 * 8 / 2 - 8
In => 2, 8, 8, 9; Out => ( 2 - 8 + 9 ) * 8
In => 2, 8, 9, 9; Out => 8 + 9 + 9 - 2
In => 2, 9, 9, 9; Out =>
In => 3, 3, 3, 3; Out => 3 * 3 * 3 - 3
In => 3, 3, 3, 4; Out => ( 3 * 3 - 3 ) * 4
In => 3, 3, 3, 5; Out => 3 * 3 + 3 * 5
In => 3, 3, 3, 6; Out => 3 + 3 + 3 * 6
In => 3, 3, 3, 7; Out => ( 3 / 3 + 7 ) * 3
In => 3, 3, 3, 8; Out => 3 - 3 + 3 * 8
In => 3, 3, 3, 9; Out => ( 9 - 3 / 3 ) * 3
In => 3, 3, 4, 4; Out => 3 * 4 + 4 * 3
In => 3, 3, 4, 5; Out => ( 3 / 3 + 5 ) * 4
In => 3, 3, 4, 6; Out => 3 - 3 + 4 * 6
In => 3, 3, 4, 7; Out => ( 4 + 7 - 3 ) * 3
In => 3, 3, 4, 8; Out => ( 4 - 3 / 3 ) * 8
In => 3, 3, 4, 9; Out => 3 + 3 * 4 + 9
In => 3, 3, 5, 5; Out => 5 * 5 - 3 / 3
In => 3, 3, 5, 6; Out => 3 + 3 * 5 + 6
In => 3, 3, 5, 7; Out => ( 3 * 5 - 7 ) * 3
In => 3, 3, 5, 8; Out =>
In => 3, 3, 5, 9; Out => ( 5 + 9 / 3 ) * 3
In => 3, 3, 6, 6; Out => ( 6 + 6 / 3 ) * 3
In => 3, 3, 6, 7; Out => 3 * 7 - 3 + 6
In => 3, 3, 6, 8; Out => ( 3 * 3 - 6 ) * 8
In => 3, 3, 6, 9; Out => 3 * 3 + 6 + 9
In => 3, 3, 7, 7; Out => ( 3 + 3 / 7 ) * 7
In => 3, 3, 7, 8; Out => 3 * 3 + 7 + 8
In => 3, 3, 7, 9; Out => 3 + 7 * 9 / 3
In => 3, 3, 8, 8; Out => 8 / ( 3 - 8 / 3 )
In => 3, 3, 8, 9; Out => ( 9 - 3 - 3 ) * 8
In => 3, 3, 9, 9; Out => 3 + 3 + 9 + 9
In => 3, 4, 4, 4; Out => ( 3 + 4 ) * 4 - 4
In => 3, 4, 4, 5; Out => 3 + 4 * 4 + 5
In => 3, 4, 4, 6; Out => ( 3 + 4 / 4 ) * 6
In => 3, 4, 4, 7; Out => ( 3 - 4 + 7 ) * 4
In => 3, 4, 4, 8; Out => 3 / 4 * 4 * 8
In => 3, 4, 4, 9; Out => 4 * 9 - 3 * 4
In => 3, 4, 5, 5; Out => 3 - 4 + 5 * 5
In => 3, 4, 5, 6; Out => ( 3 - 4 + 5 ) * 6
In => 3, 4, 5, 7; Out => 3 * 4 + 5 + 7
In => 3, 4, 5, 8; Out => 4 * 8 - 3 - 5
In => 3, 4, 5, 9; Out => ( 3 * 5 - 9 ) * 4
In => 3, 4, 6, 6; Out => 3 * 4 + 6 + 6
In => 3, 4, 6, 7; Out =>
In => 3, 4, 6, 8; Out => ( 3 * 4 - 8 ) * 6
In => 3, 4, 6, 9; Out => ( 3 - 6 + 9 ) * 4
In => 3, 4, 7, 7; Out => 3 + 4 * 7 - 7
In => 3, 4, 7, 8; Out => 8 - 4 * ( 3 - 7 )
In => 3, 4, 7, 9; Out => 3 * 9 + 4 - 7
In => 3, 4, 8, 8; Out =>
In => 3, 4, 8, 9; Out => 3 + 4 + 8 + 9
In => 3, 4, 9, 9; Out => 4 * 9 - 9 - 3
In => 3, 5, 5, 5; Out =>
In => 3, 5, 5, 6; Out => ( 3 + 5 / 5 ) * 6
In => 3, 5, 5, 7; Out => ( 5 / 5 + 7 ) * 3
In => 3, 5, 5, 8; Out => 3 / 5 * 5 * 8
In => 3, 5, 5, 9; Out => ( 3 + 9 / 5 ) * 5
In => 3, 5, 6, 6; Out => ( 3 - 5 + 6 ) * 6
In => 3, 5, 6, 7; Out => ( 6 + 7 - 5 ) * 3
In => 3, 5, 6, 8; Out => ( 5 - 6 / 3 ) * 8
In => 3, 5, 6, 9; Out => 3 + 5 * 6 - 9
In => 3, 5, 7, 7; Out =>
In => 3, 5, 7, 8; Out => 3 * 7 + 8 - 5
In => 3, 5, 7, 9; Out => 3 + 5 + 7 + 9
In => 3, 5, 8, 8; Out => 3 + 5 + 8 + 8
In => 3, 5, 8, 9; Out => 3 * 9 + 5 - 8
In => 3, 5, 9, 9; Out => 5 * 9 / 3 + 9
In => 3, 6, 6, 6; Out => ( 3 + 6 / 6 ) * 6
In => 3, 6, 6, 7; Out => 6 * 7 - 3 * 6
In => 3, 6, 6, 8; Out => 3 / 6 * 6 * 8
In => 3, 6, 6, 9; Out => 3 + 6 + 6 + 9
In => 3, 6, 7, 7; Out => ( 3 + 7 / 7 ) * 6
In => 3, 6, 7, 8; Out => 3 + 6 + 7 + 8
In => 3, 6, 7, 9; Out => 3 * 7 + 9 - 6
In => 3, 6, 8, 8; Out => 6 * 8 - 8 * 3
In => 3, 6, 8, 9; Out => ( 3 - 8 + 9 ) * 6
In => 3, 6, 9, 9; Out => 3 * 9 - 9 + 6
In => 3, 7, 7, 7; Out => 3 + 7 + 7 + 7
In => 3, 7, 7, 8; Out => 3 / 7 * 7 * 8
In => 3, 7, 7, 9; Out => ( 9 - 7 / 7 ) * 3
In => 3, 7, 8, 8; Out => ( 7 + 8 / 8 ) * 3
In => 3, 7, 8, 9; Out => ( 7 - 8 + 9 ) * 3
In => 3, 7, 9, 9; Out => ( 7 + 9 / 9 ) * 3
In => 3, 8, 8, 8; Out => 3 / 8 * 8 * 8
In => 3, 8, 8, 9; Out => ( 9 - 8 / 8 ) * 3
In => 3, 8, 9, 9; Out => 3 * 8 + 9 - 9
In => 3, 9, 9, 9; Out => 9 + 9 + 9 - 3
In => 4, 4, 4, 4; Out => 4 + 4 + 4 * 4
In => 4, 4, 4, 5; Out => ( 4 / 4 + 5 ) * 4
In => 4, 4, 4, 6; Out => 4 - 4 + 4 * 6
In => 4, 4, 4, 7; Out => ( 7 - 4 / 4 ) * 4
In => 4, 4, 4, 8; Out => 4 * 8 - 4 - 4
In => 4, 4, 4, 9; Out => 4 - 4 * ( 4 - 9 )
In => 4, 4, 5, 5; Out => 5 * 5 - 4 / 4
In => 4, 4, 5, 6; Out => ( 5 - 4 / 4 ) * 6
In => 4, 4, 5, 7; Out => ( 4 - 5 + 7 ) * 4
In => 4, 4, 5, 8; Out => 4 * 5 + 8 - 4
In => 4, 4, 5, 9; Out =>
In => 4, 4, 6, 6; Out =>
In => 4, 4, 6, 7; Out =>
In => 4, 4, 6, 8; Out => ( 4 - 6 + 8 ) * 4
In => 4, 4, 6, 9; Out => 4 * 4 / 6 * 9
In => 4, 4, 7, 7; Out => ( 4 - 4 / 7 ) * 7
In => 4, 4, 7, 8; Out => 4 + 4 * 7 - 8
In => 4, 4, 7, 9; Out => 4 + 4 + 7 + 9
In => 4, 4, 8, 8; Out => 4 + 4 + 8 + 8
In => 4, 4, 8, 9; Out => 4 * 9 - 4 - 8
In => 4, 4, 9, 9; Out =>
In => 4, 5, 5, 5; Out => 4 + 5 * 5 - 5
In => 4, 5, 5, 6; Out => 4 / 5 * 5 * 6
In => 4, 5, 5, 7; Out => ( 7 - 5 / 5 ) * 4
In => 4, 5, 5, 8; Out => ( 4 - 5 / 5 ) * 8
In => 4, 5, 5, 9; Out => 4 * 5 - 5 + 9
In => 4, 5, 6, 6; Out => ( 5 + 6 / 6 ) * 4
In => 4, 5, 6, 7; Out => ( 5 - 6 + 7 ) * 4
In => 4, 5, 6, 8; Out => ( 4 + 5 - 6 ) * 8
In => 4, 5, 6, 9; Out => 4 + 5 + 6 + 9
In => 4, 5, 7, 7; Out => 5 * 7 - 7 - 4
In => 4, 5, 7, 8; Out => 4 + 5 + 7 + 8
In => 4, 5, 7, 9; Out => 4 * 7 - 9 + 5
In => 4, 5, 8, 8; Out => ( 5 + 8 / 8 ) * 4
In => 4, 5, 8, 9; Out => ( 5 - 8 + 9 ) * 4
In => 4, 5, 9, 9; Out => ( 5 + 9 / 9 ) * 4
In => 4, 6, 6, 6; Out => 4 / 6 * 6 * 6
In => 4, 6, 6, 7; Out => ( 7 - 6 / 6 ) * 4
In => 4, 6, 6, 8; Out => 4 + 6 + 6 + 8
In => 4, 6, 6, 9; Out => 4 * 9 - 6 - 6
In => 4, 6, 7, 7; Out => 4 + 6 + 7 + 7
In => 4, 6, 7, 8; Out => ( 4 + 6 - 7 ) * 8
In => 4, 6, 7, 9; Out => 6 / 4 * ( 7 + 9 )
In => 4, 6, 8, 8; Out => 4 * 6 + 8 - 8
In => 4, 6, 8, 9; Out => 6 + 8 * 9 / 4
In => 4, 6, 9, 9; Out => 4 * 6 + 9 - 9
In => 4, 7, 7, 7; Out => ( 7 - 7 / 7 ) * 4
In => 4, 7, 7, 8; Out => ( 4 - 7 / 7 ) * 8
In => 4, 7, 7, 9; Out =>
In => 4, 7, 8, 8; Out => 7 * 8 - 8 * 4
In => 4, 7, 8, 9; Out => ( 7 + 8 - 9 ) * 4
In => 4, 7, 9, 9; Out => ( 7 - 9 / 9 ) * 4
In => 4, 8, 8, 8; Out => 8 + 8 * 8 / 4
In => 4, 8, 8, 9; Out => ( 4 + 8 - 9 ) * 8
In => 4, 8, 9, 9; Out => ( 4 - 9 / 9 ) * 8
In => 4, 9, 9, 9; Out =>
In => 5, 5, 5, 5; Out => 5 * 5 - 5 / 5
In => 5, 5, 5, 6; Out => 5 + 5 * 5 - 6
In => 5, 5, 5, 7; Out =>
In => 5, 5, 5, 8; Out =>
In => 5, 5, 5, 9; Out => 5 + 5 + 5 + 9
In => 5, 5, 6, 6; Out => 5 * 5 - 6 / 6
In => 5, 5, 6, 7; Out => 5 * 5 + 6 - 7
In => 5, 5, 6, 8; Out => 5 + 5 + 6 + 8
In => 5, 5, 6, 9; Out =>
In => 5, 5, 7, 7; Out => 5 + 5 + 7 + 7
In => 5, 5, 7, 8; Out => 5 * 5 + 7 - 8
In => 5, 5, 7, 9; Out =>
In => 5, 5, 8, 8; Out => 5 * 5 - 8 / 8
In => 5, 5, 8, 9; Out => 5 * 5 + 8 - 9
In => 5, 5, 9, 9; Out => 5 * 5 - 9 / 9
In => 5, 6, 6, 6; Out => ( 5 - 6 / 6 ) * 6
In => 5, 6, 6, 7; Out => 5 + 6 + 6 + 7
In => 5, 6, 6, 8; Out => 6 + 6 * ( 8 - 5 )
In => 5, 6, 6, 9; Out => 6 * 9 - 5 * 6
In => 5, 6, 7, 7; Out => ( 5 - 7 / 7 ) * 6
In => 5, 6, 7, 8; Out => ( 5 + 7 - 8 ) * 6
In => 5, 6, 7, 9; Out => 6 - 9 * ( 5 - 7 )
In => 5, 6, 8, 8; Out => ( 5 + 6 - 8 ) * 8
In => 5, 6, 8, 9; Out => ( 5 + 8 - 9 ) * 6
In => 5, 6, 9, 9; Out => ( 5 - 9 / 9 ) * 6
In => 5, 7, 7, 7; Out =>
In => 5, 7, 7, 8; Out =>
In => 5, 7, 7, 9; Out => ( 5 + 7 ) * ( 9 - 7 )
In => 5, 7, 8, 8; Out => 8 - 8 * ( 5 - 7 )
In => 5, 7, 8, 9; Out => 5 * 8 - 9 - 7
In => 5, 7, 9, 9; Out =>
In => 5, 8, 8, 8; Out => 5 * 8 - 8 - 8
In => 5, 8, 8, 9; Out => 8 * 9 / ( 8 - 5 )
In => 5, 8, 9, 9; Out =>
In => 5, 9, 9, 9; Out =>
In => 6, 6, 6, 6; Out => 6 + 6 + 6 + 6
In => 6, 6, 6, 7; Out =>
In => 6, 6, 6, 8; Out => ( 6 + 6 - 8 ) * 6
In => 6, 6, 6, 9; Out => 6 * 6 * 6 / 9
In => 6, 6, 7, 7; Out =>
In => 6, 6, 7, 8; Out =>
In => 6, 6, 7, 9; Out => ( 6 + 7 - 9 ) * 6
In => 6, 6, 8, 8; Out => 6 * 8 / ( 8 - 6 )
In => 6, 6, 8, 9; Out => ( 6 + 6 - 9 ) * 8
In => 6, 6, 9, 9; Out =>
In => 6, 7, 7, 7; Out =>
In => 6, 7, 7, 8; Out =>
In => 6, 7, 7, 9; Out =>
In => 6, 7, 8, 8; Out =>
In => 6, 7, 8, 9; Out => 6 * 8 / ( 9 - 7 )
In => 6, 7, 9, 9; Out => 6 * 7 - 9 - 9
In => 6, 8, 8, 8; Out => 8 + 8 * ( 8 - 6 )
In => 6, 8, 8, 9; Out => 8 * 9 - 6 * 8
In => 6, 8, 9, 9; Out => 8 * 9 / ( 9 - 6 )
In => 6, 9, 9, 9; Out =>
In => 7, 7, 7, 7; Out =>
In => 7, 7, 7, 8; Out =>
In => 7, 7, 7, 9; Out =>
In => 7, 7, 8, 8; Out =>
In => 7, 7, 8, 9; Out =>
In => 7, 7, 9, 9; Out =>
In => 7, 8, 8, 8; Out =>
In => 7, 8, 8, 9; Out => 8 + 8 * ( 9 - 7 )
In => 7, 8, 9, 9; Out =>
In => 7, 9, 9, 9; Out =>
In => 8, 8, 8, 8; Out =>
In => 8, 8, 8, 9; Out =>
In => 8, 8, 9, 9; Out =>
In => 8, 9, 9, 9; Out =>
In => 9, 9, 9, 9; Out =>



[ 25. September 2002, 00:48: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#70132 - 2002-09-25 12:58 AM Re: KixGolf Results/Code
Fernando Madruga Offline
Starting to like KiXtart

Registered: 2002-08-21
Posts: 149
Loc: Coimbra.Portugal.Europe.Earth....
Eheh... I guess it was too much to read back, and it was my fault for not updating the info in the proper places, , but I'd already found that... Check my last post on the previous thread.
Using python, I found the 466th one that perl "missed" and the python script took only 21 minutes instead of the 6 hours of the perl version...

That's why I added the 3388 "out of order" in my test program: didn't feel like inserting it into it's "numerical" place and reformating all the lines... [Smile]

{edit} Also, about the parenthesis, this is the current status (for the floating point version):
code:
; Parentheses: 5 needed combinations
; abcd
; (ab)(cd)
; a(bcd)
; (abc)d

; 0 need (ab)cd \
; 0 need a(bc)d - 1 solution (1169) needs any one of these!
; 0 need ab(cd) /
; ------------------
; 1 need (abc)d
; ------------------
; 3 need a(bcd)
; 13 need (ab)(cd)

{/edit}

[ 25. September 2002, 01:08: Message edited by: Fernando Madruga ]
_________________________
Later,   [b]Mad[/b]ruga

Top
#70133 - 2002-09-25 01:04 AM Re: KixGolf Results/Code
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
I wrote it in kixtart & the math routine is very messy but it completes in about 2 hours.

The important question is: Is everyone aware that "(a b) c d" and "(a b c) d" are necessary to derive all solutions?

Your analysis implies that you only need brackets for 18 of your 466 solutions. My results suggest that exactly half of the solutions absolutely require brackets.

[ 25. September 2002, 01:16: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#70134 - 2002-09-25 01:14 AM Re: KixGolf Results/Code
Fernando Madruga Offline
Starting to like KiXtart

Registered: 2002-08-21
Posts: 149
Loc: Coimbra.Portugal.Europe.Earth....
I may prove myself wrong anytime! I wrote a small perl one-liner and apparently you may be right, Jack... Going to delve deeper into this. Oddly enough, Howard's code seems to hold pretty well!

I'll get back soon...
_________________________
Later,   [b]Mad[/b]ruga

Top
#70135 - 2002-09-25 01:31 AM Re: KixGolf Results/Code
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Hey Madruga ... you still thinking about leaving this board (i mean Kixtart) ... seems to me your having way too much fun ... where else can you find this kind of action ? Kixtart is more than just a reskit utility ... its a way of life !!!
Top
#70136 - 2002-09-25 01:54 AM Re: KixGolf Results/Code
Fernando Madruga Offline
Starting to like KiXtart

Registered: 2002-08-21
Posts: 149
Loc: Coimbra.Portugal.Europe.Earth....
Well, Shawn, I must admit that I've had much fun these past weeks in this board, but KiXtart won't cut it for me for "real" work: nothing worse than having to solve some misterious problem, and having to fight the language at the same time...
Not that this kind of thing won't happen in other languages, but it's just not that bad... I'm learning Python now (not for the same reason I wanted KiXtart, of course!) and having a decent editor/debugger sure makes the tables turn...
Plus, it's a much more "challenging" language to learn and I like most of what I found in it (Python).

In short, I'm commited to leave KiXtart for any serious work, but I may as well end up visiting you guys here from time to time.

I had more fun participating in this game without actually being one of the competitors than if I did compete!
_________________________
Later,   [b]Mad[/b]ruga

Top
#70137 - 2002-09-25 02:01 AM Re: KixGolf Results/Code
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
(ab)cd
(ab)(cd)
(abc)d
a(bcd)

it's in there
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#70138 - 2002-09-25 02:04 AM Re: KixGolf Results/Code
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
I believe you need:

a b c d
(a b c) d
a (b c d)
a b (c d)
(a b) (c d)
(a b) c d

to find all solutions. (Sorry, I haven't verified that you absolutely need a b c d. Never thought of that. Howard what made you think of that combo.)

[ 25. September 2002, 02:08: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#70139 - 2002-09-25 02:06 AM Re: KixGolf Results/Code
Fernando Madruga Offline
Starting to like KiXtart

Registered: 2002-08-21
Posts: 149
Loc: Coimbra.Portugal.Europe.Earth....
I know that, Howard... I was commenting on Jack's claim that more parentheses would be needed...
Still learning a bit more Python so I can make sort that one out (could have done it sooner in Perl, but hey, I'm learning a new language, so why don't I try and put it to use?!

(One of these day's I'll get kicked for speaking so much about languages other than KiXtart... [Smile] )
_________________________
Later,   [b]Mad[/b]ruga

Top
#70140 - 2002-09-25 02:08 AM Re: KixGolf Results/Code
Fernando Madruga Offline
Starting to like KiXtart

Registered: 2002-08-21
Posts: 149
Loc: Coimbra.Portugal.Europe.Earth....
Jack: can you give us one example of each that can only be solved with one of these parenthesis constructs?
_________________________
Later,   [b]Mad[/b]ruga

Top
#70141 - 2002-09-25 02:38 AM Re: KixGolf Results/Code
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I can add the "()"'s quickly and easily if it is required.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#70142 - 2002-09-25 02:45 AM Re: KixGolf Results/Code
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Howard,

I don't know how you did it either great luck or great logic but you choose a subset of bracket combinations that works. If any one wishes to validate their code use the routine below. If it passes this code it works.

code:
dim $m, $rc
$rc=SETOPTION('Explicit','ON')
$rc=SETOPTION('NoVarsInString','ON')
redirectoutput("game24.txt",1)
$m=test24(0,0,0,0,2)
$m=test24(0,0,0,1,2)
$m=test24(0,0,0,2,2)
$m=test24(0,0,0,3,2)
$m=test24(0,0,0,4,2)
$m=test24(0,0,0,5,2)
$m=test24(0,0,0,6,2)
$m=test24(0,0,0,7,2)
$m=test24(0,0,0,8,2)
$m=test24(0,0,0,9,2)
$m=test24(0,0,1,1,2)
$m=test24(0,0,1,2,2)
$m=test24(0,0,1,3,2)
$m=test24(0,0,1,4,2)
$m=test24(0,0,1,5,2)
$m=test24(0,0,1,6,2)
$m=test24(0,0,1,7,2)
$m=test24(0,0,1,8,2)
$m=test24(0,0,1,9,2)
$m=test24(0,0,2,2,2)
$m=test24(0,0,2,3,2)
$m=test24(0,0,2,4,2)
$m=test24(0,0,2,5,2)
$m=test24(0,0,2,6,2)
$m=test24(0,0,2,7,2)
$m=test24(0,0,2,8,2)
$m=test24(0,0,2,9,2)
$m=test24(0,0,3,3,2)
$m=test24(0,0,3,4,2)
$m=test24(0,0,3,5,2)
$m=test24(0,0,3,6,2)
$m=test24(0,0,3,7,2)
$m=test24(0,0,3,8,1)
$m=test24(0,0,3,9,2)
$m=test24(0,0,4,4,2)
$m=test24(0,0,4,5,2)
$m=test24(0,0,4,6,1)
$m=test24(0,0,4,7,2)
$m=test24(0,0,4,8,2)
$m=test24(0,0,4,9,2)
$m=test24(0,0,5,5,2)
$m=test24(0,0,5,6,2)
$m=test24(0,0,5,7,2)
$m=test24(0,0,5,8,2)
$m=test24(0,0,5,9,2)
$m=test24(0,0,6,6,2)
$m=test24(0,0,6,7,2)
$m=test24(0,0,6,8,2)
$m=test24(0,0,6,9,2)
$m=test24(0,0,7,7,2)
$m=test24(0,0,7,8,2)
$m=test24(0,0,7,9,2)
$m=test24(0,0,8,8,2)
$m=test24(0,0,8,9,2)
$m=test24(0,0,9,9,2)
$m=test24(0,1,1,1,2)
$m=test24(0,1,1,2,2)
$m=test24(0,1,1,3,2)
$m=test24(0,1,1,4,2)
$m=test24(0,1,1,5,2)
$m=test24(0,1,1,6,2)
$m=test24(0,1,1,7,2)
$m=test24(0,1,1,8,2)
$m=test24(0,1,1,9,2)
$m=test24(0,1,2,2,2)
$m=test24(0,1,2,3,2)
$m=test24(0,1,2,4,2)
$m=test24(0,1,2,5,2)
$m=test24(0,1,2,6,2)
$m=test24(0,1,2,7,2)
$m=test24(0,1,2,8,1)
$m=test24(0,1,2,9,2)
$m=test24(0,1,3,3,2)
$m=test24(0,1,3,4,2)
$m=test24(0,1,3,5,2)
$m=test24(0,1,3,6,1)
$m=test24(0,1,3,7,1)
$m=test24(0,1,3,8,1)
$m=test24(0,1,3,9,1)
$m=test24(0,1,4,4,2)
$m=test24(0,1,4,5,1)
$m=test24(0,1,4,6,1)
$m=test24(0,1,4,7,1)
$m=test24(0,1,4,8,1)
$m=test24(0,1,4,9,2)
$m=test24(0,1,5,5,1)
$m=test24(0,1,5,6,1)
$m=test24(0,1,5,7,2)
$m=test24(0,1,5,8,2)
$m=test24(0,1,5,9,2)
$m=test24(0,1,6,6,2)
$m=test24(0,1,6,7,2)
$m=test24(0,1,6,8,2)
$m=test24(0,1,6,9,2)
$m=test24(0,1,7,7,2)
$m=test24(0,1,7,8,2)
$m=test24(0,1,7,9,2)
$m=test24(0,1,8,8,2)
$m=test24(0,1,8,9,2)
$m=test24(0,1,9,9,2)
$m=test24(0,2,2,2,2)
$m=test24(0,2,2,3,2)
$m=test24(0,2,2,4,2)
$m=test24(0,2,2,5,2)
$m=test24(0,2,2,6,1)
$m=test24(0,2,2,7,2)
$m=test24(0,2,2,8,2)
$m=test24(0,2,2,9,2)
$m=test24(0,2,3,3,2)
$m=test24(0,2,3,4,1)
$m=test24(0,2,3,5,2)
$m=test24(0,2,3,6,1)
$m=test24(0,2,3,7,2)
$m=test24(0,2,3,8,1)
$m=test24(0,2,3,9,1)
$m=test24(0,2,4,4,1)
$m=test24(0,2,4,5,2)
$m=test24(0,2,4,6,1)
$m=test24(0,2,4,7,2)
$m=test24(0,2,4,8,1)
$m=test24(0,2,4,9,2)
$m=test24(0,2,5,5,2)
$m=test24(0,2,5,6,2)
$m=test24(0,2,5,7,1)
$m=test24(0,2,5,8,1)
$m=test24(0,2,5,9,2)
$m=test24(0,2,6,6,1)
$m=test24(0,2,6,7,2)
$m=test24(0,2,6,8,1)
$m=test24(0,2,6,9,1)
$m=test24(0,2,7,7,2)
$m=test24(0,2,7,8,2)
$m=test24(0,2,7,9,2)
$m=test24(0,2,8,8,1)
$m=test24(0,2,8,9,2)
$m=test24(0,2,9,9,2)
$m=test24(0,3,3,3,2)
$m=test24(0,3,3,4,1)
$m=test24(0,3,3,5,1)
$m=test24(0,3,3,6,2)
$m=test24(0,3,3,7,1)
$m=test24(0,3,3,8,1)
$m=test24(0,3,3,9,1)
$m=test24(0,3,4,4,1)
$m=test24(0,3,4,5,2)
$m=test24(0,3,4,6,1)
$m=test24(0,3,4,7,2)
$m=test24(0,3,4,8,1)
$m=test24(0,3,4,9,1)
$m=test24(0,3,5,5,2)
$m=test24(0,3,5,6,2)
$m=test24(0,3,5,7,2)
$m=test24(0,3,5,8,1)
$m=test24(0,3,5,9,1)
$m=test24(0,3,6,6,1)
$m=test24(0,3,6,7,1)
$m=test24(0,3,6,8,1)
$m=test24(0,3,6,9,2)
$m=test24(0,3,7,7,2)
$m=test24(0,3,7,8,1)
$m=test24(0,3,7,9,2)
$m=test24(0,3,8,8,1)
$m=test24(0,3,8,9,1)
$m=test24(0,3,9,9,2)
$m=test24(0,4,4,4,2)
$m=test24(0,4,4,5,1)
$m=test24(0,4,4,6,1)
$m=test24(0,4,4,7,1)
$m=test24(0,4,4,8,1)
$m=test24(0,4,4,9,2)
$m=test24(0,4,5,5,2)
$m=test24(0,4,5,6,1)
$m=test24(0,4,5,7,2)
$m=test24(0,4,5,8,2)
$m=test24(0,4,5,9,2)
$m=test24(0,4,6,6,1)
$m=test24(0,4,6,7,1)
$m=test24(0,4,6,8,1)
$m=test24(0,4,6,9,1)
$m=test24(0,4,7,7,2)
$m=test24(0,4,7,8,1)
$m=test24(0,4,7,9,2)
$m=test24(0,4,8,8,1)
$m=test24(0,4,8,9,2)
$m=test24(0,4,9,9,2)
$m=test24(0,5,5,5,2)
$m=test24(0,5,5,6,2)
$m=test24(0,5,5,7,2)
$m=test24(0,5,5,8,2)
$m=test24(0,5,5,9,2)
$m=test24(0,5,6,6,1)
$m=test24(0,5,6,7,2)
$m=test24(0,5,6,8,2)
$m=test24(0,5,6,9,1)
$m=test24(0,5,7,7,2)
$m=test24(0,5,7,8,2)
$m=test24(0,5,7,9,2)
$m=test24(0,5,8,8,1)
$m=test24(0,5,8,9,2)
$m=test24(0,5,9,9,2)
$m=test24(0,6,6,6,2)
$m=test24(0,6,6,7,2)
$m=test24(0,6,6,8,2)
$m=test24(0,6,6,9,2)
$m=test24(0,6,7,7,2)
$m=test24(0,6,7,8,2)
$m=test24(0,6,7,9,2)
$m=test24(0,6,8,8,2)
$m=test24(0,6,8,9,1)
$m=test24(0,6,9,9,1)
$m=test24(0,7,7,7,2)
$m=test24(0,7,7,8,2)
$m=test24(0,7,7,9,2)
$m=test24(0,7,8,8,2)
$m=test24(0,7,8,9,1)
$m=test24(0,7,9,9,2)
$m=test24(0,8,8,8,1)
$m=test24(0,8,8,9,2)
$m=test24(0,8,9,9,2)
$m=test24(0,9,9,9,2)
$m=test24(1,1,1,1,2)
$m=test24(1,1,1,2,2)
$m=test24(1,1,1,3,2)
$m=test24(1,1,1,4,2)
$m=test24(1,1,1,5,2)
$m=test24(1,1,1,6,2)
$m=test24(1,1,1,7,2)
$m=test24(1,1,1,8,1)
$m=test24(1,1,1,9,2)
$m=test24(1,1,2,2,2)
$m=test24(1,1,2,3,2)
$m=test24(1,1,2,4,2)
$m=test24(1,1,2,5,2)
$m=test24(1,1,2,6,1)
$m=test24(1,1,2,7,1)
$m=test24(1,1,2,8,1)
$m=test24(1,1,2,9,1)
$m=test24(1,1,3,3,2)
$m=test24(1,1,3,4,1)
$m=test24(1,1,3,5,1)
$m=test24(1,1,3,6,1)
$m=test24(1,1,3,7,1)
$m=test24(1,1,3,8,1)
$m=test24(1,1,3,9,1)
$m=test24(1,1,4,4,1)
$m=test24(1,1,4,5,1)
$m=test24(1,1,4,6,1)
$m=test24(1,1,4,7,1)
$m=test24(1,1,4,8,1)
$m=test24(1,1,4,9,1)
$m=test24(1,1,5,5,1)
$m=test24(1,1,5,6,1)
$m=test24(1,1,5,7,1)
$m=test24(1,1,5,8,1)
$m=test24(1,1,5,9,2)
$m=test24(1,1,6,6,1)
$m=test24(1,1,6,7,2)
$m=test24(1,1,6,8,1)
$m=test24(1,1,6,9,1)
$m=test24(1,1,7,7,2)
$m=test24(1,1,7,8,2)
$m=test24(1,1,7,9,2)
$m=test24(1,1,8,8,1)
$m=test24(1,1,8,9,2)
$m=test24(1,1,9,9,2)
$m=test24(1,2,2,2,2)
$m=test24(1,2,2,3,2)
$m=test24(1,2,2,4,1)
$m=test24(1,2,2,5,1)
$m=test24(1,2,2,6,1)
$m=test24(1,2,2,7,1)
$m=test24(1,2,2,8,1)
$m=test24(1,2,2,9,1)
$m=test24(1,2,3,3,1)
$m=test24(1,2,3,4,1)
$m=test24(1,2,3,5,1)
$m=test24(1,2,3,6,1)
$m=test24(1,2,3,7,1)
$m=test24(1,2,3,8,1)
$m=test24(1,2,3,9,1)
$m=test24(1,2,4,4,1)
$m=test24(1,2,4,5,1)
$m=test24(1,2,4,6,1)
$m=test24(1,2,4,7,1)
$m=test24(1,2,4,8,1)
$m=test24(1,2,4,9,1)
$m=test24(1,2,5,5,1)
$m=test24(1,2,5,6,1)
$m=test24(1,2,5,7,1)
$m=test24(1,2,5,8,1)
$m=test24(1,2,5,9,1)
$m=test24(1,2,6,6,1)
$m=test24(1,2,6,7,1)
$m=test24(1,2,6,8,1)
$m=test24(1,2,6,9,1)
$m=test24(1,2,7,7,1)
$m=test24(1,2,7,8,1)
$m=test24(1,2,7,9,1)
$m=test24(1,2,8,8,1)
$m=test24(1,2,8,9,1)
$m=test24(1,2,9,9,2)
$m=test24(1,3,3,3,1)
$m=test24(1,3,3,4,1)
$m=test24(1,3,3,5,1)
$m=test24(1,3,3,6,1)
$m=test24(1,3,3,7,1)
$m=test24(1,3,3,8,1)
$m=test24(1,3,3,9,1)
$m=test24(1,3,4,4,1)
$m=test24(1,3,4,5,1)
$m=test24(1,3,4,6,1)
$m=test24(1,3,4,7,1)
$m=test24(1,3,4,8,1)
$m=test24(1,3,4,9,1)
$m=test24(1,3,5,5,2)
$m=test24(1,3,5,6,1)
$m=test24(1,3,5,7,1)
$m=test24(1,3,5,8,1)
$m=test24(1,3,5,9,1)
$m=test24(1,3,6,6,1)
$m=test24(1,3,6,7,1)
$m=test24(1,3,6,8,1)
$m=test24(1,3,6,9,1)
$m=test24(1,3,7,7,1)
$m=test24(1,3,7,8,1)
$m=test24(1,3,7,9,1)
$m=test24(1,3,8,8,1)
$m=test24(1,3,8,9,1)
$m=test24(1,3,9,9,1)
$m=test24(1,4,4,4,1)
$m=test24(1,4,4,5,1)
$m=test24(1,4,4,6,1)
$m=test24(1,4,4,7,1)
$m=test24(1,4,4,8,1)
$m=test24(1,4,4,9,1)
$m=test24(1,4,5,5,1)
$m=test24(1,4,5,6,1)
$m=test24(1,4,5,7,1)
$m=test24(1,4,5,8,1)
$m=test24(1,4,5,9,1)
$m=test24(1,4,6,6,1)
$m=test24(1,4,6,7,1)
$m=test24(1,4,6,8,1)
$m=test24(1,4,6,9,1)
$m=test24(1,4,7,7,1)
$m=test24(1,4,7,8,1)
$m=test24(1,4,7,9,1)
$m=test24(1,4,8,8,1)
$m=test24(1,4,8,9,1)
$m=test24(1,4,9,9,2)
$m=test24(1,5,5,5,1)
$m=test24(1,5,5,6,1)
$m=test24(1,5,5,7,2)
$m=test24(1,5,5,8,2)
$m=test24(1,5,5,9,1)
$m=test24(1,5,6,6,1)
$m=test24(1,5,6,7,1)
$m=test24(1,5,6,8,1)
$m=test24(1,5,6,9,1)
$m=test24(1,5,7,7,2)
$m=test24(1,5,7,8,1)
$m=test24(1,5,7,9,1)
$m=test24(1,5,8,8,1)
$m=test24(1,5,8,9,1)
$m=test24(1,5,9,9,1)
$m=test24(1,6,6,6,1)
$m=test24(1,6,6,7,2)
$m=test24(1,6,6,8,1)
$m=test24(1,6,6,9,1)
$m=test24(1,6,7,7,2)
$m=test24(1,6,7,8,2)
$m=test24(1,6,7,9,1)
$m=test24(1,6,8,8,1)
$m=test24(1,6,8,9,1)
$m=test24(1,6,9,9,1)
$m=test24(1,7,7,7,2)
$m=test24(1,7,7,8,2)
$m=test24(1,7,7,9,1)
$m=test24(1,7,8,8,1)
$m=test24(1,7,8,9,1)
$m=test24(1,7,9,9,1)
$m=test24(1,8,8,8,1)
$m=test24(1,8,8,9,1)
$m=test24(1,8,9,9,2)
$m=test24(1,9,9,9,2)
$m=test24(2,2,2,2,2)
$m=test24(2,2,2,3,1)
$m=test24(2,2,2,4,1)
$m=test24(2,2,2,5,1)
$m=test24(2,2,2,6,2)
$m=test24(2,2,2,7,1)
$m=test24(2,2,2,8,1)
$m=test24(2,2,2,9,1)
$m=test24(2,2,3,3,1)
$m=test24(2,2,3,4,1)
$m=test24(2,2,3,5,1)
$m=test24(2,2,3,6,1)
$m=test24(2,2,3,7,1)
$m=test24(2,2,3,8,1)
$m=test24(2,2,3,9,1)
$m=test24(2,2,4,4,1)
$m=test24(2,2,4,5,1)
$m=test24(2,2,4,6,1)
$m=test24(2,2,4,7,1)
$m=test24(2,2,4,8,1)
$m=test24(2,2,4,9,1)
$m=test24(2,2,5,5,1)
$m=test24(2,2,5,6,1)
$m=test24(2,2,5,7,1)
$m=test24(2,2,5,8,1)
$m=test24(2,2,5,9,1)
$m=test24(2,2,6,6,1)
$m=test24(2,2,6,7,1)
$m=test24(2,2,6,8,1)
$m=test24(2,2,6,9,1)
$m=test24(2,2,7,7,1)
$m=test24(2,2,7,8,1)
$m=test24(2,2,7,9,2)
$m=test24(2,2,8,8,1)
$m=test24(2,2,8,9,1)
$m=test24(2,2,9,9,2)
$m=test24(2,3,3,3,1)
$m=test24(2,3,3,4,2)
$m=test24(2,3,3,5,1)
$m=test24(2,3,3,6,1)
$m=test24(2,3,3,7,1)
$m=test24(2,3,3,8,1)
$m=test24(2,3,3,9,1)
$m=test24(2,3,4,4,1)
$m=test24(2,3,4,5,1)
$m=test24(2,3,4,6,1)
$m=test24(2,3,4,7,1)
$m=test24(2,3,4,8,1)
$m=test24(2,3,4,9,1)
$m=test24(2,3,5,5,1)
$m=test24(2,3,5,6,1)
$m=test24(2,3,5,7,1)
$m=test24(2,3,5,8,1)
$m=test24(2,3,5,9,1)
$m=test24(2,3,6,6,1)
$m=test24(2,3,6,7,1)
$m=test24(2,3,6,8,1)
$m=test24(2,3,6,9,1)
$m=test24(2,3,7,7,1)
$m=test24(2,3,7,8,1)
$m=test24(2,3,7,9,1)
$m=test24(2,3,8,8,1)
$m=test24(2,3,8,9,1)
$m=test24(2,3,9,9,1)
$m=test24(2,4,4,4,1)
$m=test24(2,4,4,5,1)
$m=test24(2,4,4,6,1)
$m=test24(2,4,4,7,1)
$m=test24(2,4,4,8,1)
$m=test24(2,4,4,9,1)
$m=test24(2,4,5,5,1)
$m=test24(2,4,5,6,1)
$m=test24(2,4,5,7,1)
$m=test24(2,4,5,8,1)
$m=test24(2,4,5,9,1)
$m=test24(2,4,6,6,1)
$m=test24(2,4,6,7,1)
$m=test24(2,4,6,8,1)
$m=test24(2,4,6,9,1)
$m=test24(2,4,7,7,1)
$m=test24(2,4,7,8,1)
$m=test24(2,4,7,9,1)
$m=test24(2,4,8,8,1)
$m=test24(2,4,8,9,1)
$m=test24(2,4,9,9,1)
$m=test24(2,5,5,5,2)
$m=test24(2,5,5,6,2)
$m=test24(2,5,5,7,1)
$m=test24(2,5,5,8,1)
$m=test24(2,5,5,9,1)
$m=test24(2,5,6,6,1)
$m=test24(2,5,6,7,1)
$m=test24(2,5,6,8,1)
$m=test24(2,5,6,9,1)
$m=test24(2,5,7,7,1)
$m=test24(2,5,7,8,1)
$m=test24(2,5,7,9,1)
$m=test24(2,5,8,8,1)
$m=test24(2,5,8,9,1)
$m=test24(2,5,9,9,2)
$m=test24(2,6,6,6,1)
$m=test24(2,6,6,7,1)
$m=test24(2,6,6,8,1)
$m=test24(2,6,6,9,1)
$m=test24(2,6,7,7,2)
$m=test24(2,6,7,8,1)
$m=test24(2,6,7,9,1)
$m=test24(2,6,8,8,1)
$m=test24(2,6,8,9,1)
$m=test24(2,6,9,9,1)
$m=test24(2,7,7,7,2)
$m=test24(2,7,7,8,1)
$m=test24(2,7,7,9,2)
$m=test24(2,7,8,8,1)
$m=test24(2,7,8,9,1)
$m=test24(2,7,9,9,2)
$m=test24(2,8,8,8,1)
$m=test24(2,8,8,9,1)
$m=test24(2,8,9,9,1)
$m=test24(2,9,9,9,2)
$m=test24(3,3,3,3,1)
$m=test24(3,3,3,4,1)
$m=test24(3,3,3,5,1)
$m=test24(3,3,3,6,1)
$m=test24(3,3,3,7,1)
$m=test24(3,3,3,8,1)
$m=test24(3,3,3,9,1)
$m=test24(3,3,4,4,1)
$m=test24(3,3,4,5,1)
$m=test24(3,3,4,6,1)
$m=test24(3,3,4,7,1)
$m=test24(3,3,4,8,1)
$m=test24(3,3,4,9,1)
$m=test24(3,3,5,5,1)
$m=test24(3,3,5,6,1)
$m=test24(3,3,5,7,1)
$m=test24(3,3,5,8,2)
$m=test24(3,3,5,9,1)
$m=test24(3,3,6,6,1)
$m=test24(3,3,6,7,1)
$m=test24(3,3,6,8,1)
$m=test24(3,3,6,9,1)
$m=test24(3,3,7,7,1)
$m=test24(3,3,7,8,1)
$m=test24(3,3,7,9,1)
$m=test24(3,3,8,8,1)
$m=test24(3,3,8,9,1)
$m=test24(3,3,9,9,1)
$m=test24(3,4,4,4,1)
$m=test24(3,4,4,5,1)
$m=test24(3,4,4,6,1)
$m=test24(3,4,4,7,1)
$m=test24(3,4,4,8,1)
$m=test24(3,4,4,9,1)
$m=test24(3,4,5,5,1)
$m=test24(3,4,5,6,1)
$m=test24(3,4,5,7,1)
$m=test24(3,4,5,8,1)
$m=test24(3,4,5,9,1)
$m=test24(3,4,6,6,1)
$m=test24(3,4,6,7,2)
$m=test24(3,4,6,8,1)
$m=test24(3,4,6,9,1)
$m=test24(3,4,7,7,1)
$m=test24(3,4,7,8,1)
$m=test24(3,4,7,9,1)
$m=test24(3,4,8,8,2)
$m=test24(3,4,8,9,1)
$m=test24(3,4,9,9,1)
$m=test24(3,5,5,5,2)
$m=test24(3,5,5,6,1)
$m=test24(3,5,5,7,1)
$m=test24(3,5,5,8,1)
$m=test24(3,5,5,9,1)
$m=test24(3,5,6,6,1)
$m=test24(3,5,6,7,1)
$m=test24(3,5,6,8,1)
$m=test24(3,5,6,9,1)
$m=test24(3,5,7,7,2)
$m=test24(3,5,7,8,1)
$m=test24(3,5,7,9,1)
$m=test24(3,5,8,8,1)
$m=test24(3,5,8,9,1)
$m=test24(3,5,9,9,1)
$m=test24(3,6,6,6,1)
$m=test24(3,6,6,7,1)
$m=test24(3,6,6,8,1)
$m=test24(3,6,6,9,1)
$m=test24(3,6,7,7,1)
$m=test24(3,6,7,8,1)
$m=test24(3,6,7,9,1)
$m=test24(3,6,8,8,1)
$m=test24(3,6,8,9,1)
$m=test24(3,6,9,9,1)
$m=test24(3,7,7,7,1)
$m=test24(3,7,7,8,1)
$m=test24(3,7,7,9,1)
$m=test24(3,7,8,8,1)
$m=test24(3,7,8,9,1)
$m=test24(3,7,9,9,1)
$m=test24(3,8,8,8,1)
$m=test24(3,8,8,9,1)
$m=test24(3,8,9,9,1)
$m=test24(3,9,9,9,1)
$m=test24(4,4,4,4,1)
$m=test24(4,4,4,5,1)
$m=test24(4,4,4,6,1)
$m=test24(4,4,4,7,1)
$m=test24(4,4,4,8,1)
$m=test24(4,4,4,9,1)
$m=test24(4,4,5,5,1)
$m=test24(4,4,5,6,1)
$m=test24(4,4,5,7,1)
$m=test24(4,4,5,8,1)
$m=test24(4,4,5,9,2)
$m=test24(4,4,6,6,2)
$m=test24(4,4,6,7,2)
$m=test24(4,4,6,8,1)
$m=test24(4,4,6,9,1)
$m=test24(4,4,7,7,1)
$m=test24(4,4,7,8,1)
$m=test24(4,4,7,9,1)
$m=test24(4,4,8,8,1)
$m=test24(4,4,8,9,1)
$m=test24(4,4,9,9,2)
$m=test24(4,5,5,5,1)
$m=test24(4,5,5,6,1)
$m=test24(4,5,5,7,1)
$m=test24(4,5,5,8,1)
$m=test24(4,5,5,9,1)
$m=test24(4,5,6,6,1)
$m=test24(4,5,6,7,1)
$m=test24(4,5,6,8,1)
$m=test24(4,5,6,9,1)
$m=test24(4,5,7,7,1)
$m=test24(4,5,7,8,1)
$m=test24(4,5,7,9,1)
$m=test24(4,5,8,8,1)
$m=test24(4,5,8,9,1)
$m=test24(4,5,9,9,1)
$m=test24(4,6,6,6,1)
$m=test24(4,6,6,7,1)
$m=test24(4,6,6,8,1)
$m=test24(4,6,6,9,1)
$m=test24(4,6,7,7,1)
$m=test24(4,6,7,8,1)
$m=test24(4,6,7,9,1)
$m=test24(4,6,8,8,1)
$m=test24(4,6,8,9,1)
$m=test24(4,6,9,9,1)
$m=test24(4,7,7,7,1)
$m=test24(4,7,7,8,1)
$m=test24(4,7,7,9,2)
$m=test24(4,7,8,8,1)
$m=test24(4,7,8,9,1)
$m=test24(4,7,9,9,1)
$m=test24(4,8,8,8,1)
$m=test24(4,8,8,9,1)
$m=test24(4,8,9,9,1)
$m=test24(4,9,9,9,2)
$m=test24(5,5,5,5,1)
$m=test24(5,5,5,6,1)
$m=test24(5,5,5,7,2)
$m=test24(5,5,5,8,2)
$m=test24(5,5,5,9,1)
$m=test24(5,5,6,6,1)
$m=test24(5,5,6,7,1)
$m=test24(5,5,6,8,1)
$m=test24(5,5,6,9,2)
$m=test24(5,5,7,7,1)
$m=test24(5,5,7,8,1)
$m=test24(5,5,7,9,2)
$m=test24(5,5,8,8,1)
$m=test24(5,5,8,9,1)
$m=test24(5,5,9,9,1)
$m=test24(5,6,6,6,1)
$m=test24(5,6,6,7,1)
$m=test24(5,6,6,8,1)
$m=test24(5,6,6,9,1)
$m=test24(5,6,7,7,1)
$m=test24(5,6,7,8,1)
$m=test24(5,6,7,9,1)
$m=test24(5,6,8,8,1)
$m=test24(5,6,8,9,1)
$m=test24(5,6,9,9,1)
$m=test24(5,7,7,7,2)
$m=test24(5,7,7,8,2)
$m=test24(5,7,7,9,1)
$m=test24(5,7,8,8,1)
$m=test24(5,7,8,9,1)
$m=test24(5,7,9,9,2)
$m=test24(5,8,8,8,1)
$m=test24(5,8,8,9,1)
$m=test24(5,8,9,9,2)
$m=test24(5,9,9,9,2)
$m=test24(6,6,6,6,1)
$m=test24(6,6,6,7,2)
$m=test24(6,6,6,8,1)
$m=test24(6,6,6,9,1)
$m=test24(6,6,7,7,2)
$m=test24(6,6,7,8,2)
$m=test24(6,6,7,9,1)
$m=test24(6,6,8,8,1)
$m=test24(6,6,8,9,1)
$m=test24(6,6,9,9,2)
$m=test24(6,7,7,7,2)
$m=test24(6,7,7,8,2)
$m=test24(6,7,7,9,2)
$m=test24(6,7,8,8,2)
$m=test24(6,7,8,9,1)
$m=test24(6,7,9,9,1)
$m=test24(6,8,8,8,1)
$m=test24(6,8,8,9,1)
$m=test24(6,8,9,9,1)
$m=test24(6,9,9,9,2)
$m=test24(7,7,7,7,2)
$m=test24(7,7,7,8,2)
$m=test24(7,7,7,9,2)
$m=test24(7,7,8,8,2)
$m=test24(7,7,8,9,2)
$m=test24(7,7,9,9,2)
$m=test24(7,8,8,8,2)
$m=test24(7,8,8,9,1)
$m=test24(7,8,9,9,2)
$m=test24(7,9,9,9,2)
$m=test24(8,8,8,8,2)
$m=test24(8,8,8,9,2)
$m=test24(8,8,9,9,2)
$m=test24(8,9,9,9,2)
$m=test24(9,9,9,9,2)

function test24($i1,$i2,$i3,$i4,$behaviour)
DIM $out, $str, $found
$str = 'In => '+$i1+', '+$i2+', '+$i3+', '+$i4+'; Out => '
$out=Game24($i1,$i2,$i3,$i4)
$out=trim($out)
$str = $str + $out
if $out <> ""
$found=1
else
$found=0
endif
if ( ($behaviour=1) and ($found=1) ) or ( ($behaviour=2) and ($found=0) )
$str = $str + " => Correct!!"
else
$str = $str + " => WRONG!!"
endif
? $str
endfunction

_________________________
Jack

Top
#70143 - 2002-09-25 02:52 AM Re: KixGolf Results/Code
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I can't say it was great logic. I started with the what made sense: a lone pair, double pair for all 5's, a(bcd), and (abc)d.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 4 of 5 <12345>


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 312 anonymous users online.
Newest Members
Praveer, Ollero, rayyo, Foxlicht, DonChild
17742 Registered Users

Generated in 0.151 seconds in which 0.116 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org