elan-language / Documentation

0 stars 0 forks source link

Change to system calls #182

Closed richardpawson closed 4 months ago

richardpawson commented 4 months ago

system

Proposal:

change from

var x set to system.readKey() or set y to system.readKey()

to

system readykey() into x system random(pack) into card

Where x can be new or existing variable. If existing, the type must be compatible

Advantages:

system deal() as Card
  var deck set to {"Ac","2c","3c",...,"Ks"}
  system random(deck) into card
  return card
end system