have games as global variables like this;
(setf fear
'((Title fear)
(Developer Monolith)
(Genre FPS)
(Rating 8)
(Platform PC)))
so if i want to return the info from it i can use an accessor like this;
(defun read-title (game)
(assoc 'title game))
next step is to put all my games into a global variable which will act as a database of games. I've made this;
(setf Gamesdb '(
;;Game 1
((Title FIFA)
(Developer EA)
(Genre Sports)
(Rating 6)
(Platform PS2))
;;Game 2
((Title Grand-Theft-Auto)
(Developer Rockstar)
(Genre 3rd)
(Rating 10)
(Platform PS2))))
My problem is, with a global variable which contains more than one game i have no idea how to access the data or make ammendments to it. For example, if i wanted to find the game with the highest rating.
any ideas?
Posted By: Erdington Yella, Dec 7, 13:18:48
Written & Designed By Ben Graves 1999-2025