From: Eric S. Raymond Date: Wed, 24 Apr 2019 15:46:44 +0000 (-0400) Subject: Add another regression test. X-Git-Tag: 2.5~12 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=dd8c3c87b85e956d2caa46d739038b45b57361d6;p=super-star-trek.git Add another regression test. --- diff --git a/test/test05.chk b/test/test05.chk new file mode 100644 index 0000000..062e38d --- /dev/null +++ b/test/test05.chk @@ -0,0 +1,412 @@ + + +-SUPER- STAR TREK + + + +Stardate 5021. + +18 Klingons. +An unknown number of Romulans. +And one (GULP) Super-Commander. +7 stardates. +2 starbases in 4 - 2 8 - 7 + +The Enterprise is currently in Quadrant 2 - 6 Sector 7 - 7 + +Good Luck! + YOU'LL NEED IT. +COMMAND> # Test deep-scace probes and battle death +# recorded by esr@snark on Wed Apr 24 11:34:04 2019 +chart + STAR CHART FOR THE KNOWN GALAXY + 1 2 3 4 5 6 7 8 +1 | ... ... ... ... 8 5 106 ... | +2 | ... ... ... ... 4 < 5> 4 ... | +3 | ... ... ... ... 2 4 7 ... | +4 | ... .1. ... ... ... ... ... ... | +5 | ... ... ... ... ... ... ... ... | +6 | ... ... ... ... ... ... ... ... | +7 | ... ... ... ... ... ... ... ... | +8 | ... ... ... ... ... ... .1. ... | + +COMMAND> m a 1 10 + +COMMAND> s hup + Short-range scan + 1 2 3 4 5 6 7 8 9 10 + 1 . * . . . . . @ . E + 2 . . . . . . . . . + 3 . . . . . . . . . + 4 . . . . . . . . . . + 5 . . . . * . . . . . + 6 . . . . . . . . . . + 7 . . . . . . . . * . + 8 . . . . * . . . . + 9 . * . . . . . . . . +10 . . . . . . . . . . +COMMAND> m a 2 7 1 1 + +Ensign Chekov- "Course laid in, Captain." + +Entering Quadrant 2 - 7. +COMMAND> chart + STAR CHART FOR THE KNOWN GALAXY + 1 2 3 4 5 6 7 8 +1 | ... ... ... ... 8 5 106 5 | +2 | ... ... ... ... 4 5 < 4> 2 | +3 | ... ... ... ... 2 4 7 7 | +4 | ... .1. ... ... ... ... ... ... | +5 | ... ... ... ... ... ... ... ... | +6 | ... ... ... ... ... ... ... ... | +7 | ... ... ... ... ... ... ... ... | +8 | ... ... ... ... ... ... .1. ... | + +COMMAND> probe +2 probes left +Are you sure you want to fire a probe? y +Arm NOVAMAX warhead? n +Manual or automatic- a +Target quadrant or quadrant§or- 2 1 + +Ensign Chekov- "The deep space probe is launched, Captain." +COMMAND> sh up +Shields raised. +COMMAND> m 1 7 10 1 +(Manual movement assumed.) + +Helmsman Sulu- "Aye, Sir." + +YOU HAVE ATTEMPTED TO CROSS THE NEGATIVE ENERGY BARRIER +AT THE EDGE OF THE GALAXY. THE THIRD TIME YOU TRY THIS, +YOU WILL BE DESTROYED. + +Lt. Uhura- "The deep space probe is now in Quadrant 2 - 6." + +Lt. Uhura- "The deep space probe is now in Quadrant 2 - 5." + +Lt. Uhura- "The deep space probe is now in Quadrant 2 - 4." + +Lt. Uhura- "The deep space probe is now in Quadrant 2 - 3." + +Lt. Uhura- "The deep space probe is now in Quadrant 2 - 2." + +Lt. Uhura- "The deep space probe is now in Quadrant 2 - 1." + +[ANNOUNCEMENT ARRIVING...] + +Lt. Uhura- "The deep space probe has left the galaxy." + +[ANNOUNCEMENT ARRIVING...] +[CONTINUE?] + + + + + + + + + + + + + + + + + + + + + + + + +Lt. Uhura- "Captain, Starfleet Intelligence reports + a planet in Quadrant 1 - 3 has been destroyed by the Super-commander." + +[ANNOUNCEMENT ARRIVING...] + +***Enterprise caught in long range tractor beam-- +Enterprise is pulled to Quadrant 3 - 3, Sector 6 - 8 + +Enemy attack reduces shield strength to 85%, torpedoes left 10 +COMMAND> m a 6 10 + + +52 unit hit from Klingon at 1 - 8 + + +Energy left 3399 shields up 75%, torpedoes left 10 + +[ANNOUNCEMENT ARRIVING...] + +Message from Starfleet Command Stardate 5024.18 + Supernova in Quadrant 2 - 6; caution advised. +COMMAND> torp 2 1 8 1 8 + +Track for torpedo number 1- 5 - 10 4 - 9 3 - 9 +2 - 9 1 - 8 +***Commander at Sector 1 - 8 damaged-- displaced by blast to Sector 5 - 9 + +Track for torpedo number 2- 5 - 10 4 - 9 3 - 9 +2 - 8 1 - 8 +Torpedo missed. + +38 unit hit from Klingon at 5 - 9 + + +Energy left 3310 shields up 71%, torpedoes left 8 +COMMAND> torp 1 5 9 + +Torpedo track- 5 - 9 +***Commander at Sector 5 - 9 destroyed. +COMMAND> chart + STAR CHART FOR THE KNOWN GALAXY + 1 2 3 4 5 6 7 8 +1 | ... ... ... ... 8 5 106 5 | +2 | 4 9 3 5 4 *** 4 2 | +3 | ... 3 < 6> 6 2 4 7 7 | +4 | ... 15 6 1 ... ... ... ... | +5 | ... ... ... ... ... ... ... ... | +6 | ... ... ... ... ... ... ... ... | +7 | ... ... ... ... ... ... ... ... | +8 | ... ... ... ... ... ... .1. ... | + +COMMAND> m a 10 6 + + +[ANNOUNCEMENT ARRIVING...] + +***Enterprise caught in long range tractor beam-- +Enterprise is pulled to Quadrant 7 - 3, Sector 3 - 2 + +67 unit hit from Klingon at 10 - 6 + + +Energy left 3126 shields up 66%, torpedoes left 7 +COMMAND> torp 2 10 6 + +Track for torpedo number 1- 4 - 3 5 - 3 6 - 4 +7 - 4 8 - 5 9 - 5 10 - 6 +***Commander at Sector 10 - 6 damaged-- displaced by blast to Sector 3 - 3 + +Track for torpedo number 2- 4 - 3 5 - 3 6 - 4 +7 - 4 8 - 5 9 - 5 10 - 6 +Torpedo missed. + +73 unit hit from Klingon at 3 - 3 + + +Energy left 3052 shields up 61%, torpedoes left 5 +COMMAND> torp 1 3 3 + +Torpedo track- 3 - 3 +***Commander at Sector 3 - 3 destroyed. +COMMAND> chart + STAR CHART FOR THE KNOWN GALAXY + 1 2 3 4 5 6 7 8 +1 | ... ... ... ... 8 5 106 5 | +2 | 4 9 3 5 4 *** 4 2 | +3 | ... 3 6 6 2 4 7 7 | +4 | ... 15 6 1 ... ... ... ... | +5 | ... ... ... ... ... ... ... ... | +6 | ... 8 2 5 ... ... ... ... | +7 | ... 8 < 1> 8 ... ... ... ... | +8 | ... 5 7 9 ... ... .1. ... | + +COMMAND> probe +1 probe left. +Are you sure you want to fire a probe? y +Arm NOVAMAX warhead? n +Manual or automatic- a +Target quadrant or quadrant§or- 7 10 + +Beg your pardon, Captain? +COMMAND> chart + STAR CHART FOR THE KNOWN GALAXY + 1 2 3 4 5 6 7 8 +1 | ... ... ... ... 8 5 106 5 | +2 | 4 9 3 5 4 *** 4 2 | +3 | ... 3 6 6 2 4 7 7 | +4 | ... 15 6 1 ... ... ... ... | +5 | ... ... ... ... ... ... ... ... | +6 | ... 8 2 5 ... ... ... ... | +7 | ... 8 < 1> 8 ... ... ... ... | +8 | ... 5 7 9 ... ... .1. ... | + +COMMAND> probe +1 probe left. +Are you sure you want to fire a probe? y +Arm NOVAMAX warhead? n +Manual or automatic- a +Target quadrant or quadrant§or- 7 8 + +Ensign Chekov- "The deep space probe is launched, Captain." +COMMAND> chart + STAR CHART FOR THE KNOWN GALAXY + 1 2 3 4 5 6 7 8 +1 | ... ... ... ... 8 5 106 5 | +2 | 4 9 3 5 4 *** 4 2 | +3 | ... 3 6 6 2 4 7 7 | +4 | ... 15 6 1 ... ... ... ... | +5 | ... ... ... ... ... ... ... ... | +6 | ... 8 2 5 ... ... ... ... | +7 | ... 8 < 1> 8 ... ... ... ... | +8 | ... 5 7 9 ... ... .1. ... | + +COMMAND> m a 5 3 5 5 + +Ensign Chekov- "Course laid in, Captain." + +Entering Quadrant 5 - 3. + +Lt. Uhura- "The deep space probe is now in Quadrant 7 - 4." + +Lt. Uhura- "The deep space probe is now in Quadrant 7 - 5." + +[ANNOUNCEMENT ARRIVING...] + +Message from Starfleet Command Stardate 5024.61 + Supernova in Quadrant 7 - 7; caution advised. + +Lt. Uhura- "The deep space probe is now in Quadrant 7 - 6." + +[ANNOUNCEMENT ARRIVING...] + +Lt. Uhura- "The deep space probe is no longer transmitting." +COMMAND> chart + STAR CHART FOR THE KNOWN GALAXY + 1 2 3 4 5 6 7 8 +1 | ... ... ... ... 8 5 106 5 | +2 | 4 9 3 5 4 *** 4 2 | +3 | ... 3 6 6 2 4 7 7 | +4 | ... 15 6 1 ... ... ... ... | +5 | ... 1 < 6> 7 ... ... ... ... | +6 | ... 8 2 5 ... ... ... ... | +7 | ... 8 1 8 602 5 *** ... | +8 | ... 5 7 9 ... ... .1. ... | + +COMMAND> sh down +Shields lowered. +COMMAND> m a 1 1 + + +[ANNOUNCEMENT ARRIVING...] +Lt. Uhura- "Captain, Starfleet Intelligence reports + the Super-commander is in Quadrant 2 - 5,COMMAND> chart + STAR CHART FOR THE KNOWN GALAXY + 1 2 3 4 5 6 7 8 +1 | ... ... ... ... 8 5 106 5 | +2 | 4 9 3 5 104 *** 4 2 | +3 | ... 3 6 6 2 4 7 7 | +4 | ... 15 6 1 ... ... ... ... | +5 | ... 1 < 6> 7 ... ... ... ... | +6 | ... 8 2 5 ... ... ... ... | +7 | ... 8 1 8 602 5 *** ... | +8 | ... 5 7 9 ... ... .1. ... | + +COMMAND> m a 4 2 10 10 + +Ensign Chekov- "Course laid in, Captain." + +Entering Quadrant 4 - 2. +COMMAND> m a 10 4 + +COMMAND> m a 6 4 + + +[ANNOUNCEMENT ARRIVING...] + +***Enterprise caught in long range tractor beam-- +Enterprise is pulled to Quadrant 1 - 7, Sector 8 - 5 +Shields raised. + +335 unit hit from Klingon at 9 - 3 + +***CRITICAL HIT--Shields damaged. +***Shields knocked down. + +Energy left 2027 shields damaged, 44%, torpedoes left 4 +COMMAND> p a + +Phasers locked on target. Energy available: 2027.62 +646 units required. Units to fire= 646 + +523 unit hit on Commander at Sector 9 - 3 +***Commander at Sector 9 - 3 destroyed. +COMMAND> sh down +Shields damaged and down. +COMMAND> chart + STAR CHART FOR THE KNOWN GALAXY + 1 2 3 4 5 6 7 8 +1 | ... ... ... ... 8 5 < 6> 5 | +2 | 4 9 3 5 4 *** 4 2 | +3 | 7 3 6 6 2 104 7 7 | +4 | 8 15 6 1 ... ... ... ... | +5 | 2 1 6 7 ... ... ... ... | +6 | ... 8 2 5 ... ... ... ... | +7 | ... 8 1 8 602 5 *** ... | +8 | ... 5 7 9 ... ... .1. ... | + +COMMAND> m a 4 2 1 10 + +Ensign Chekov- "Course laid in, Captain." + +Entering Quadrant 4 - 2. + +[ANNOUNCEMENT ARRIVING...] + +***Enterprise caught in long range tractor beam-- +Enterprise is pulled to Quadrant 3 - 6, Sector 3 - 10 +(Shields not currently useable.) + +1302 unit hit from Klingon at 1 - 10 + +***CRITICAL HIT--Transporter and Impulse Engines and Impulse Engines damaged. + + + +It is stardate 5027.7. + +The Enterprise has been destroyed in battle. + +Dulce et decorum est pro patria mori. +The Federation will be destroyed. + + +[CONTINUE?] + + + + + + + + + + + + + + + + + + + + + + + + +Your score -- + 3 Klingon commanders destroyed 150 + 0.49 Klingons per stardate 244 + 1 ship(s) lost or destroyed -100 +Penalty for getting yourself killed -200 + +TOTAL SCORE 93 + +May the Great Bird of the Galaxy roost upon your home planet. diff --git a/test/test05.log b/test/test05.log new file mode 100644 index 0000000..2584ff8 --- /dev/null +++ b/test/test05.log @@ -0,0 +1,50 @@ +# seed 1556120044 +# options regular short good fancy +# Test deep-scace probes and battle death +# recorded by esr@snark on Wed Apr 24 11:34:04 2019 +chart +m a 1 10 +s hup +m a 2 7 1 1 +chart +probe +y +n +a +2 1 +sh up +m 1 7 10 1 +m a 6 10 +torp 2 1 8 1 8 +torp 1 5 9 +chart +m a 10 6 +torp 2 10 6 +torp 1 3 3 +chart +probe +y +n +a +7 10 +chart +probe +y +n +a +7 8 +chart +m a 5 3 5 5 +chart +sh down +m a 1 1 +chart +m a 4 2 10 10 +m a 10 4 +m a 6 4 +p a +646 +sh down +chart +m a 4 2 1 10 +n