pretty basic i think
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 on December 7th 2005 at 13:18:48
Message Thread
- Anyone here familiar with lisp programming, have a small question. (n/m) (General Chat) - Erdington Yella, Dec 7, 13:10:59
- Urm. I did a bit at university (General Chat) - Arizona Bay, Dec 7, 13:18:17
- yeth I am -what ithit you witthh to know? (n/m) (General Chat) - malkybarkid, Dec 7, 13:13:59
- Excellent. (n/m) (General Chat) - The Tudster, Dec 7, 13:30:10
- pretty basic i think (General Chat) - Erdington Yella, Dec 7, 13:18:48
- Whoooosh. (General Chat) - Arizona Bay, Dec 7, 13:27:05
- lol (n/m) (General Chat) - NCFC4life, Dec 7, 13:15:33
Reply to Message
In order to add a post to the WotB Message Board you must be a registered WotB user.
If you are not yet registered then please visit the registration page. You should ensure that their browser is setup to accept cookies.