wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Game via listing method

profile
Nikita Makwana
Jul 17, 2025
0 Likes
0 Discussions
3 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

TOP 5 GAMING GADGETS (2024)

Blog banner

Virtual memory in os

Blog banner

Session Hijacking Techniques

Blog banner

Cloud Technology and its Implications for Entrepreneurship

Blog banner

GOOGLE

Blog banner

Digital black market or dark net poses a national security threat?

Blog banner

What is Brute Force Attack? How to defend against it?

Blog banner

Kernel in Operating System

Blog banner

RAID and It's Levels

Blog banner

Hello World

Blog banner

Evolution of Operating Sytems

Blog banner

Virtual Memory - Explaination, Working, Steps

Blog banner

Process and Threading

Blog banner

RAID - LEVELS OF RAID

Blog banner

Hacking Mobile Platforms

Blog banner

What is Influencer Marketing and its Trends

Blog banner

Little Habits, Big Impact: Daily Preschool Routines That Shape the Future

Blog banner

Top 5 Post-Wedding Skin Care Tips

Blog banner

Microsoft Word

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

Service Operations Principles

Blog banner

City of Mumbai (Bombay):

Blog banner

The Importance of Eating on Time: How Meal Timing Affects Your Health

Blog banner

Mumbai

Blog banner

Cyber Forensics on IOT Devices

Blog banner

Deming’s Process

Blog banner

Virtual Machine's

Blog banner

Know your Processors!

Blog banner

What is Virtual Memory

Blog banner

Vaping vs. Chewing Gum: The Hidden ‘Stress Fix’ Destroying Sydney’s Teeth

Blog banner

A buffer overflow

Blog banner

Review on Recovering Deleted Files

Blog banner

?Your Guide to Great Flossing, by the best affordable dentist in Maroubra

Blog banner

Interesting fact about kangaroo.

Blog banner

CSI and Organizational Change

Blog banner

Multiple-Processor Scheduling in Operating System

Blog banner

Service design process in ITSM

Blog banner

Starting Android Activity Using Intent

Blog banner

Be you

Blog banner

AI and cyber Security

Blog banner

Memory management

Blog banner

Top 5 Benefits of Artificial Intelligence

Blog banner