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

15 Websites that will make your life easier ...!!!

Blog banner

SESSION HIJACKING

Blog banner

How covid-19 impacted Social media ad spend forecast globally

Blog banner

Python as a tool for Data science task & project

Blog banner

Hubspot

Blog banner

How India made the GIS its Own, and its Use in Infrastructural Developments

Blog banner

How Social Media Algorithms Will Work in 2026?

Blog banner

Importance of Website

Blog banner

Threads in OS

Blog banner

Information Technology In E- Commerce

Blog banner

Paging

Blog banner

Four Stalls Every Vegetarian Needs To Eat At Outside Vile Parle Station

Blog banner

Atlantis - The Lost Island.........

Blog banner

"Mahakali cave"

Blog banner

Memory Hierarchy

Blog banner

Major achievement

Blog banner

Data Visualization in Decision-Making

Blog banner

Evolution of Operating system

Blog banner

What is Minting & Mining

Blog banner

Stories Woven in Silk: The Meaning Behind Patola Motifs

Blog banner

memory cache

Blog banner

EMAIL INVESTIGATION

Blog banner

Direct memory access

Blog banner

INTERNET SECURITY

Blog banner

Why Soft Skills Matter as Much as Grades?

Blog banner

Simple Ways of Avoiding Basic Mistakes in Smart Phone Security

Blog banner

MODERN OPERATING SYSTEM

Blog banner

15 Interesting Facts about India

Blog banner

Khau Galli – Vile Parle

Blog banner

Modern Operating System - Khush Bagaria

Blog banner

MAILFENCE

Blog banner

Principles of Service Operation

Blog banner

Operating System

Blog banner

Policies for Service Transition

Blog banner

ODOO

Blog banner

Topic: Sessions in Operating system

Blog banner

Water Resources are about to exhaust...

Blog banner

RAID

Blog banner

Threads

Blog banner

Types of Threads

Blog banner

OS DESIGN CONSIDERATIONS FOR MULTIPROCESSOR

Blog banner

MY FIRST BLOG?

Blog banner