Announcement

Collapse
No announcement yet.

APL Game - Design Concepts

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • APL Game - Design Concepts

    The APL game is under development at http://APLGAME.COM. This game will be multi-user and help promote the basics of APL programming.
    [ATTACH=CONFIG]n20[/ATTACH]

  • #2
    One important feature of this forum is to document "CODE" (programming scripts).

    The following is an example of an APL PROGRAM:

    Code:
    ∇ Render req;html;⎕TRAP;z
    :Access Public
    ⍝⍝⎕TRAP←0 'S'
    
    DoAction ⍝ If a button was pressed, deal with it
    L←Loaded='\' ⋄ L←L/⍳⍴L ⋄ L←¯1↑L
    html←'<H1>Editing File ',(L↓Loaded),'</H1>'
    html,←('Action'Submit'Save'),' ',('Action'Submit'Reload')
    html,←(0≠⍴Message)/'<br><br>',Message,'<br>'
    
    html,←'Contents'MultiEdit(40 80)Contents'class=apl' ⍝ An "Edit" called "Name" containing the Name
    html,←'<br><br>'
    
    html←req('post'Form)html ⍝ Put a 'submit' form around it
    
    req.Title'Editing File ',(L↓Loaded)
    req.Return html
    ∇

    Comment


    • #3
      Very cool thanks!

      Comment

      Working...
      X