home *** CD-ROM | disk | FTP | other *** search
/ PC Consument 1998 January / PCC11998.bin / demos / euphor.exe / DEMO.DOC < prev    next >
Encoding:
Text File  |  1997-02-14  |  4.7 KB  |  121 lines

  1.  
  2.         DEMO Programs Written in Euphoria
  3.         ---------------------------------
  4.  
  5.  This directory contains a number of example programs written in Euphoria.
  6.  These programs are being contributed to the Public Domain by 
  7.  Rapid Deployment Software. You are encouraged to modify and redistribute
  8.  any of these programs. 
  9.  
  10.  To run them type 'ex' followed by the file name. e.g.   
  11.      
  12.       ex polygon
  13.  
  14.  If you are in Windows, and you have associated .ex files with ex.exe, you 
  15.  can simply double-click to run any .ex file. A few of the simpler
  16.  programs expect to be run from the command line and they will terminate
  17.  immediately after displaying something.
  18.  
  19.  You can view and modify these programs using any editor, but we recommend 
  20.  using the Euphoria editor, ed, so you can get color syntax highlighting. 
  21.  
  22.  -----------------------------------------------------------------------------
  23.  Note! If you have trouble running any of the graphics oriented programs, try
  24.  changing the line that says: 
  25.     constant GRAPHICS_MODE = 261  -- SVGA
  26.  to: 
  27.     constant GRAPHICS_MODE = 18   -- VGA
  28.  This will provide VGA resolution, and is less likely to cause problems.
  29.  See include\graphics.e for other possible graphics modes. You should also
  30.  run under DOS or in a full-screen DOS window under Windows. (Press Alt-Enter)
  31.  -----------------------------------------------------------------------------
  32.  
  33.  NAME      DESCRIPTION
  34.  ----      -----------
  35.  
  36.  allsorts.ex - comparison of different sorting algorithms
  37.           - which is the fastest sorting algorithm in Euphoria?
  38.  
  39.  animal.ex - guess the animal game
  40.        - let the computer guess which animal you are thinking of
  41.        - it learns about animals as you play
  42.        - great fun for the kids
  43.        
  44.  bitmap.ex - displays bitmap (.BMP) pictures
  45.  
  46.  buzz.ex   - "buzzword" generator - Try adding your own phrases.
  47.  
  48.  callmach.ex - an example of calling machine code from Euphoria
  49.  
  50.  dosint.ex   - some examples of calling DOS system interrupt routines
  51.  
  52.  example.ex   - example merge_sort program from the reference manual
  53.  ex.pro       - ex.pro is created when you run example.ex. It contains 
  54.             the profile output for example.ex.
  55.  
  56.  hardint.ex - a hardware interrupt handler
  57.  
  58.  learn.ex  - a quick test of your Euphoria knowledge
  59.  
  60.  mouse.ex  - simple demo of get_mouse() built-in function
  61.        - you need DOS mouse support for this
  62.  
  63.  mset.ex   - Mandelbrot Set (fractal) generator
  64.        - Press Enter to stop the display and change all the colors
  65.            - Press Enter again to choose a region of the M-set to zoom in on
  66.        - use the arrow keys to select a box to enlarge, or type 'q'
  67.          to quit
  68.        - your picture is saved in a file
  69.         - this one will take a few minutes as hundreds of floating-point
  70.           calculations are performed *per pixel*.
  71.         - see if you can run mset with a higher-resolution graphics mode
  72.   
  73.  mydata.ex - a simple database program 
  74.  
  75.  plot3d.ex - 3-D surface plotting of functions 
  76.        - add in your own function of x and y, and see it plotted
  77.        - Press Enter to move on to the next sample function
  78.  
  79.  polygon.ex - displays interesting polygon patterns
  80.         - hit space bar to see a new pattern
  81.  
  82.  queens.ex - solves the N queens problem - how to place N queens on an NxN
  83.          chess board so they do not attack each other (N = 8 for a
  84.          standard board). 
  85.  
  86.  sanity.ex - this program tests hundreds of features of Euphoria, in a quick,
  87.          self-test. If this program reports "PASSED" then Euphoria is
  88.          working on your machine. If not, there may be something wrong.
  89.  
  90.  sb.ex  - bouncing balls screen blank program 
  91.  
  92.  simple.ex - compiled "with trace" so you can see a program execute
  93.          by hitting Enter for each statement. Just Press down on
  94.          the Enter key.
  95.  
  96.  stereo.ex - make a random dot stereo picture:
  97.         - reads "picture" file by default 
  98.           
  99.  ttt.ex  - 3-dimensional tic tac toe
  100.          - try to get 4 in a row, on any plane or 1 per plane
  101.          - play against "DEFENDO" or "AGGRESSO" or a human, or
  102.        watch the AGGRESSO and DEFENDO algorithms slug it out
  103.      - you need DOS mouse support for a human to play
  104.  
  105.  wire.ex - 3-D wire frame demo of the big 'E' in Euphoria
  106.      - hit space bar to freeze/restart the display
  107.      - Enter to quit
  108.  
  109.  bench directory   - contains benchmark programs for comparing Euphoria
  110.              against QBasic. Don't take our word for it! - see
  111.              how fast Euphoria is on your machine
  112.  
  113.  langwar directory - contains a real-time star wars type game
  114.            - read lw.doc, ex lw
  115.  
  116.   -----------------------------------------------------
  117.   -- See the .ex files themselves for more details.  --
  118.   -- You can view them with:   ed filename.ex        --
  119.   -----------------------------------------------------
  120.  
  121.