wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Game via listing method

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

Deadlock in operating system

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

Introduction to Solidity Programming for Blockchain Development

Blog banner

Craziness of dream 11 and how it impacts on our life

Blog banner

Tea, Coffee, Red Wine, and Teeth: A Stain Survival Guide

Blog banner

Honeypot in cyber security

Blog banner

Direct Memory Access

Blog banner

Human factor, a critical weak point in the information security of an organization’s IOT

Blog banner

AI & Data Science in Healthcare – Predicting diseases, medical imaging analysis

Blog banner

Why Kanye West (Now Ye) is the GOAT: A Legacy Beyond Music

Blog banner

SMARTSHEET MANAGEMENT SYSTEM

Blog banner

Different Types of Data

Blog banner

Depression

Blog banner

Types of Viruses

Blog banner

Deadlock and Starvation

Blog banner

Operating Systems Overview

Blog banner

File Management system

Blog banner

M commerce

Blog banner

Health and fitness

Blog banner

Coping with Diagnosis Shock

Blog banner

All you need to know about “Off-page SEO”

Blog banner

Lucidchart

Blog banner

What is Email? Uses of Emails

Blog banner

Importance of Website

Blog banner

Different types of scam frauds

Blog banner

RACI model in IT services

Blog banner

PPT methodology

Blog banner

Multicore and Multithreading

Blog banner

How Preschools Help Children Make Their First Friends

Blog banner

Raid

Blog banner

Virtual Machine

Blog banner

Open Source Project By Google

Blog banner

Southern Turkey Earthquake: Causes and Consequences of a Tragic Natural Disaster

Blog banner

10 Reasons to Date a South Indian Girl

Blog banner

Routers

Blog banner

Concept and definition of m-commerce

Blog banner

What Your Child Learns During Free Play (That You Might Not Notice)

Blog banner

Evolution of the Microprocesor

Blog banner

Uniprocessor scheduling

Blog banner

E-commerce

Blog banner

A-B-C of Networking: Part-3 (Topology [Ring, Tree, Mesh])

Blog banner

Traditional UNIX Scheduling

Blog banner