git @ Cat's Eye Technologies
Rewrite playfield cell test program, taking a different approach. Chris Pressey 3 years ago
3 changed file(s) with 3 addition(s) and 3 deletion(s).
 87 87 | [selflist.bf](selflist.bf) | CC0 | Dmitry M Litvinov | 2/21/96 | A self-reproducing Befunge program, 13x4. 88 88 | [serp.bf](serp.bf) | | Kevin Vigor | 4/9/97 | Generates and prints a Serpinsky triangle, a simple type of fractal. Since the resolution is 20x30, the detail of the fractal isn't really visible, but hey, what can you do? 89 89 | [serp2.bf](serp2.bf) | | Kevin Vigor | 4/10/97 | Improved Serpinsky Triangle generator. 90 | [signdpfc.bf](signdpfc.bf) | CC0 | Chris Pressey | 10/4/118 | Prints "S" if your `bef` was compiled with a compiler that treats C's bare `char` type (and thus playfield cells) as signed chars, "U" if unsigned chars. Neither choice is normatively specified, but signed playfield cells are by far more common, and many consider it the de facto standard. 91 90 | [sinus.bf](sinus.bf) | CC0 | Dmitry M Litvinov | 12/1/96 | Program to generate sine wave patterns. Based on cos(a+b)=cos(a)\*cos(b)-sin(a)\*sin(b) and sin(a+b)=sin(a)\*cos(b)+cos(a)\*sin(b). sin and cos values are kept in one stack cell = abs(sin) \* 2\^16 + abs(cos). 92 91 | [sort.bf](sort.bf) | | Kalyna Zazelenchuk | 9/5/93 | Same as anagram.bf, except sorts the letters of your word in ascending order. 93 92 | [surprise.bf](surprise.bf) | | Timothy Howe | 11/26/96 | A big surprise. 94 93 | [switchbx.bf](switchbx.bf) | | Zach Baker | 7/10/97 | A real purty 'switch' statement. 95 94 | [testbrdg.bf](testbrdg.bf) | CC0 | Chris Pressey | 10/27/111| Tests whether the \# instruction interacts properly with wrapping. 96 95 | [testmodu.bf](testmodu.bf) | CC0 | Chris Pressey | 8/23/111 | Tests how your implementation of Befunge-93 calculates modulus (there is no right way.) 96 | [testpfcl.bf](testpfcl.bf) | CC0 | Chris Pressey | 10/5/118 | Prints out the largest and smallest values that can be stored in a playfield cell in your implementation of Befunge-93. A very large number of C compilers interpret `char` to mean a signed 8-bit value, so a very common result of running this is "127 -128". 97 97 | [toupper.bf](toupper.bf) | CC0 | Chris Pressey | 9/5/93 | Converts letters to upper-case. An example of the \` (greater) statement. 98 98 | [wumpus.bf](wumpus.bf) | CC0 | Wim Rijnders | 8/15/97 | The classic game of Hunt the Wumpus!
+0
-2
eg/signdpfc.bf
 0 2222222******:1-00p10p00g10g`#v_"U">,52*,@ 1 > "S"^
 0 000p>00g1+01p01g00g`#v_00g.000p>00g1-01p00g01g`#v_00g.@ 1 ^p00+1g00 < ^p00-1g00 <