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

Socket Programming in Java

Blog banner

Understanding - Proof of Work!

Blog banner

Linux -V Server Virtual Machine

Blog banner

Stephen Hawking : A Remarkable Physicist

Blog banner

Multiprocessor and scheduling

Blog banner

Segmentation and paging concept

Blog banner

Travelling blog

Blog banner

Ethical Hacking

Blog banner

Virtual memory in windows

Blog banner

12 Principles of Animation

Blog banner

IoT Evolution

Blog banner

The Features of Blockchain

Blog banner

Fashion marketing in india

Blog banner

Why Time Management Is the Secret to College Success (and How to Master It)

Blog banner

The Dark Web: A Breeding Ground for Cybercriminals – How to Guard Against Threats

Blog banner

PYTHON

Blog banner

MORDERN UNIX SYSTEM

Blog banner

E-BUSINESS RISK MANAGEMENT

Blog banner

Continual service improvement vs maintenance phase in IT

Blog banner

SEIZING DIGITL EVIDENCE AT THE SCENE

Blog banner

Why Friendship at Work is Important

Blog banner

Creating Digitally Signed Document

Blog banner

Mumbai Metro 3

Blog banner

Shoulders

Blog banner

Why Summer Break Is Important for Emotional and Cognitive Growth?

Blog banner

MENDELEY

Blog banner

Deadlock and Starvation

Blog banner

The Laws of Karma

Blog banner

PROCESS STATES OF OPERATING SYSTEM

Blog banner

How covid-19 impacted Social media ad spend forecast globally

Blog banner

Fitness regime by Deepesh

Blog banner

Different memory allocation strategies

Blog banner

Answer

Blog banner

My Favorite Sportsperson

Blog banner

Service stratergy principles

Blog banner

E-learning in today's world

Blog banner

Direct memory access (DMA)

Blog banner

THE DESIRE OF MANY

Blog banner

RAID

Blog banner

Critical success factors

Blog banner

What are the different types of E-mail crime and process of email forensic?

Blog banner

POVERTY:Causes and solutions to problems

Blog banner