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

Big O Notation

Blog banner

Embaded operating system

Blog banner

DATA BREACH CAUSES CHALLENGES PREVENTION AND FUTURE DIRECTIONS

Blog banner

What is thread and alse multithreading

Blog banner

Data Acquisition in Cyber Forensics

Blog banner

Microsoft Word

Blog banner

What is Virtual Memory

Blog banner

Google classroom

Blog banner

How covid-19 impacted Social media ad spend forecast globally

Blog banner

Steps to create an Ubuntu EC2 Instance with GUI in AWS

Blog banner

Culture Of Ladakh

Blog banner

Threads

Blog banner

The launch of UniMap by HERE

Blog banner

Functions of Operating System

Blog banner

Segmentation and paging concept

Blog banner

Threat from Inside: Educating the Employees Against Cyber Threats

Blog banner

Method of Evaluating Information Security Level in an Organization

Blog banner

From Airboat Tours to Fossil Hunting: The Ultimate Arcadia Travel Experience

Blog banner

Functions Of Operating Systems

Blog banner

Memory management

Blog banner

Why am I never satisfied with my Life?

Blog banner

Simple AI Symptom Diagnosis Using LISP – Rule-Based Expert System

Blog banner

child Labour

Blog banner

IOT- Internet Of Things

Blog banner

Information Technology In E- Commerce

Blog banner

What Makes a School Safe, Supportive, and Student-Friendly

Blog banner

The Power of Forensic Watermarking in the Fight Against Content Piracy

Blog banner

GIS Topography

Blog banner

Raid

Blog banner

Corporate Discipline.

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Europe Through My Lens

Blog banner

Data Exfiltration

Blog banner

TECHNOLOGY : BOON OR CURSE ?

Blog banner

New Horizon Europe project ‘EvoLand’ sets off to develop new prototype services.

Blog banner

Pro-Tips On How To Keep your Foot Healthy

Blog banner

Session Hijacking Techniques

Blog banner

Top 10 Logos and their meanings

Blog banner

?What Children Learn Between Activities: The Hidden Learning Moments in a Preschool Day

Blog banner

Pooja Silver

Blog banner

How Social Media Algorithms Will Work in 2026?

Blog banner

Self managing devices

Blog banner