Skip to content

fmarquez199/Playit

Repository files navigation

N|Solid

Table of content

Next page ->



Playit Programming language

Desingned by:

  • Manuel Gonzalez 11-10390 (Frontend)
  • Francisco Javier 12-11163 (Frontend, Backend)
  • Natascha Gamboa 12-11250 (Frontend, Backend) Currently working on it.

Playit, it's a general purpose imperative language, not oriented to objects, compiled and strongly typed, inspired by the world of videogames, taking concepts and philosophies from them. It is designed and implemented by Computer Engineering students from the Simón Bolívar University throughout the subjects Programming Languages I & II (CI-4721, CI-4722).

Playit has:

  • Primitive data types (Integers, Characteres, Floating point numbers, Booleans).
  • Pointers to memory in Heap.
  • Arrays, Records, Variant records.
  • Read and write from standard IO.
  • ¡LOVE! 😚


Examples

Cube volume

play world %>CubeVolume<%:
  "' Calculates the volume of a cube '"
  Skill arista, vol
  
  arista equip joystick ~Introduzca arista: ~
  vol equip arista * arista * arista
  
  drop ~volume: ~, vol
.~

Even or odd

play world %>EvenOdd<%:
  "' Says if a number is even or odd '"
  Power n
  n equip joystick ~input a Power n: ~

  Button:
  | n % 2 == 0 }
    drop ~its even~
  | notPressed }
    drop ~its odd~
  .~
.~

Multiply tables

play world %>Tables<%:
  Rune other equip *s*
  Power i, n
  
  dungeon:
    n equip joystick ~input a Power n: ~
  
    drop ~Multiply table of ~, n, ~ es:~
  
    @ Start nesting
    i equip 1 
    dungeon:
      drop n, ~ * ~, i, ~ = ~, i * n
      i++
    cleared i <= 10
    .~
    @ End nesting
  
    other = joystick ~Do you eant to calculate another table? (y/n): ~
  cleared  other != *n*
  .~
.~

Lopps with arrays and lists

Kit of Runes age equip <<~12~, ~23~, ~15~, ~40~, ~15~>>
Runes|}5{| names equip |}~Natascha~, ~Francisco~, ~Manuel~, ~Ricardo~, ~Haskell~{| 

farming Power i equip 0 until 4:
  drop ~Hola ~, names|)i(|, ~ tienes ~, age|>i<|, ~ años!~
.~

Kit of Kit of Power list2 equip << <<10,5>>, <<3,6>>, <<4,2>> >>

farming Kit of Power kpd in list2:
  farming Power d in kpd:
    drop ~Dobles: ~, d
  .~
.~


Extras

La presente sección contiene algunas funcionalidades de Playit que tentativamente pueden ser desarrolladas con el lenguaje.

  • Intérprete.
  • Hilos. cheat
  • Caracteres UTF-8.
  • Excepciones. AoE
  • Iteradores. Quest

Dungeon: record of monsters and only one final boss -> para pasar al siguiente nivel del juego

enter dungeon -> cleared -> mission/raid completed -> world level up / rank up

mission = level/stage + quests raid respawn rank skill tree upgrade

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •