wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Game via listing method

profile
Nikita Makwana
Jul 17, 2025
0 Likes
0 Discussions
0 Reads

(defun russian-roulette ()

(let ((bullet-chamber (1+ (random 6)))

(shots 0))

(format t "Pull trigger 6 times to win!~%~%")

(loop for i from 1 to 6 do

(format t "Shot ~A/6 - Press Enter to pull trigger..." i)

(read-line)

(setf shots i)

(if (= i bullet-chamber)

(progn

(format t "BANG! You're dead at shot ~A!~%~%" i)

(return))

(format t "Click... safe!~%~%")))

(if (= shots 6)

(format t "YOU WON! Survived all 6 shots!~%")

(format t "Game over~%"))))

(russian-roulette)


Comments ()


Sign in

Read Next

GIS Applications: How Different Industries are Leveraging Geospatial Data

Blog banner

Shoulders

Blog banner

Natural Language Processing(NLP)

Blog banner

PROCESS CONTROL BLOCK IN OS

Blog banner

The Future of Cybersecurity: Trends, Challenges, and Strategies

Blog banner

Deadlock in Operating System

Blog banner

Question

Blog banner

Studying Denial of service attack using DOSHTTP tool

Blog banner

Metasploit

Blog banner

Cyber-crime Investigation and Future Directions

Blog banner

About myself

Blog banner

Cyber Crime Investigation In The Era Of Big Data

Blog banner

Full Disk Encryption

Blog banner

ARTICLE ON WRIKE CORPORATION

Blog banner

Education?

Blog banner

Artificial Intelligence (AI)

Blog banner

What is metaverse?

Blog banner

Cross site scripting Attack

Blog banner

Indian Food

Blog banner

Travelling blog

Blog banner

FILE SHARING

Blog banner

OS DESIGN CONSIDERATIONS FOR MULTIPROCESSOR

Blog banner

Data is an asset and it is your responsibility!

Blog banner

Measuring IT Risk

Blog banner

What is Data, Information and Knowledge?

Blog banner

Senseless Teeths

Blog banner

Mobile Security

Blog banner

Lemon and Chilli Pickle (Limbu Mirchi Achar)

Blog banner

Evolution of Operating Sytems

Blog banner

The seven-step improvement process

Blog banner

History of ITIL

Blog banner

How Reading Books Shape a Child’s Imagination and Thinking?

Blog banner

Deadlocks in Operating Systems

Blog banner

Clarizen

Blog banner

I/O Buffering

Blog banner

Kernel Memory Allocation In Linux.

Blog banner

Why is ITSM important in IT organization?

Blog banner

All you need to know about “On-page SEO”

Blog banner

You'll get to know about Pankaj Negi

Blog banner

Fault Tolerance

Blog banner

Concurrency and Deadlocks

Blog banner

Deadlock

Blog banner