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

GIS REMOTE SENSING

Blog banner

Dekkers Algorithm : Ensuring Safe Process Synchronization

Blog banner

Mariana Trench: The deepest depths

Blog banner

Fault Tolerance

Blog banner

Some web vulnerabilities

Blog banner

Key to success in Sports

Blog banner

What Your Music Taste Reveals About Your Personality

Blog banner

JUSTICE FOR EVERY “BEZUBAAN ANIMAL”

Blog banner

IT GOVERNANCE

Blog banner

I Personally

Blog banner

Social Media.

Blog banner

Understanding the 'Ambiverts'

Blog banner

Modern Operating System - Suren Kotian

Blog banner

Asana

Blog banner

Remote Work in 2026

Blog banner

Session Hijacking

Blog banner

Benefits of Yoga

Blog banner

Kernel in Operating System

Blog banner

Analysis of Digital Evidence In Identity Theft Investigations

Blog banner

Place to visit in pune

Blog banner

Virtual Memory - Explaination, Working, Steps

Blog banner

Interrupts - Types, Working & Importance

Blog banner

ZOHO

Blog banner

Operating system

Blog banner

The Features of Blockchain

Blog banner

Deadlock in operating system

Blog banner

Introduction to Virtual Memory - 080

Blog banner

Cache Memory

Blog banner

BEAUTY IS IN THE EYE OF THE BEHOLDER

Blog banner

Top 4 Places To Stay In Copenhagen

Blog banner

Big Data Architecture

Blog banner

Affiliate Marketing V/S Influencer Marketing

Blog banner

Disk Management

Blog banner

OS DESIGN CONSIDERATIONS FOR MULTIPROCESSOR

Blog banner

1 Dentist in Maroubra, Sydney and her 10 obsessions

Blog banner

Dudhasagar waterfall ?

Blog banner

The seven-step improvement process

Blog banner

Stories Woven in Silk: The Meaning Behind Patola Motifs

Blog banner

A buffer overflow

Blog banner

Service Operations in ITSM

Blog banner

Explaining Buffer Overflow with Example

Blog banner

A Heartfelt Act of Kindness

Blog banner