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

Chicken Dum Biryani

Blog banner

MODERN OPERATING SYSTEM

Blog banner

GIS info about Bermuda Triangle

Blog banner

JIRA SOFTWARE

Blog banner

Introduction to Data Science: Life Cycle & Applications

Blog banner

EVOLUTION OF THE MIRCOPROCESSOR

Blog banner

Data Mining

Blog banner

How to grow followers on Instagram business account?

Blog banner

Multiple-Processor Scheduling in Operating System

Blog banner

Smartsheet

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Why Friendship at Work is Important

Blog banner

Tomato Butter Sauce with Bucatini

Blog banner

Service Operations in ITSM

Blog banner

Message Passing in OS

Blog banner

Fault Tolerance

Blog banner

Threat from Inside: Educating the Employees Against Cyber Threats

Blog banner

How return on investment is defined in IT services

Blog banner

Semaphores

Blog banner

Telegram and it's features

Blog banner

Different types of scam frauds

Blog banner

Brilliant WhatsApp Features Upcoming in 2023

Blog banner

Privacy LAWs in IT

Blog banner

Modern operating system

Blog banner

Synchronization

Blog banner

10 Interesting facts you should know!!!

Blog banner

Is Your Password Complex Enough?

Blog banner

Electronic Funds Transfer

Blog banner

Fashion marketing in india

Blog banner

Jira Software

Blog banner

Explain the concept of ( MIS) Management information systems

Blog banner

What is thread and multithreading ?

Blog banner

Health and fitness

Blog banner

GIS Bharat Maps

Blog banner

How to invest in Indian Stock Market ? ~ Tutorial 1

Blog banner

38_Exploring The Honeynet Project

Blog banner

Vulnerabilities in OnePlus Devices

Blog banner

Memory Management

Blog banner

USPS mail

Blog banner

Virtual machine

Blog banner

Deadlock

Blog banner

OS ASSIGNMENT

Blog banner