Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simple, expandable, customizable slot machine

License

NotificationsYou must be signed in to change notification settings

s4w3d0ff/python-slots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple, expandable, customizable slot machine

pip install slotmachine

importslotmachineslotM=slotmachine.SlotMachine()print(slotM())# [['!!!', 'BAR', '(M)']]slotM=slotmachine.SlotMachine(size=(5,1))print(slotM())# [['(H)', '(N)', '!!!', '!!!', '(H)']]slotM=slotmachine.SlotMachine(jack='BTC',bonus='LTC',size=(5,3))print(slotM())# [#   ['(Z)', '(O)', '(X)', '(M)', '(Z)'],#   ['(O)', '(Z)', '(H)', 'LTC', 'BTC'],#   ['(H)', 'LTC', '(O)', '(M)', '(Z)']# ]print(slotM.reel)# ['BTC', '(Z)', '(O)', '(H)', '(X)', '(W)', '(N)', '(M)', 'LTC', '(M)', '(N)', '(W)', '(X)', '(H)', '(O)', '(Z)', 'LTC', '(Z)', '(O)', '(H)', '(X)', '(W)', '(N)', '(M)', 'LTC', '(M)', '(N)', '(W)', '(X)', '(H)', '(O)', '(Z)', 'LTC', '(Z)', '(O)', '(H)', '(X)', '(W)', '(N)', '(M)', 'LTC', '(M)', '(N)', '(W)', '(X)', '(H)', '(O)', '(Z)']slotM=slotmachine.SlotMachine(size=(5,1))r=slotM()print(r)# [['(X)', '(W)', '(M)', '!!!', '(N)']]print(slotM.checkLine(r[0]))# Falser=slotM()print(r)# [['BAR', 'BAR', 'BAR', 'BAR', 'BAR']]print(slotM.checkLine(r[0]))# 'jackpot'

About

Simple, expandable, customizable slot machine

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp