Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

♀ /prog/ Challenge Vol. 8½ ♀

Name: Anonymous 2017-12-02 8:48

The Challenge:
-Develop a turn based combat system that implements the following choices that occur during the player's turns:
--Fight (Straight Damage)
--Item (Use an object from a choice of your design)
--Ability (Use an ability from a choice of your design)
--Run (Flee the battle)


The Deadline:
- 2017-12-14 00:00

The rest is up to you.

Name: Anonymous 2017-12-02 12:04

Please don't bully me
(define (turn players)
(dispatch 'fight (append (let ((damage ((car players) 'getDamage)))
(map (lambda (x) (x 'damage damage))
(cdr players))) (list (car players)))
'item (lambda (x) (append (cdr players) (list ((car players) 'useItem x))))
'ability (lambda (x) (append (cdr players) (list ((car players) 'ability players x))))
'flee (cdr players)))

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List