Fate of the Norns

The Complete Viking Experience!
It is currently Mon Jan 21, 2019 5:41 pm

All times are UTC - 5 hours


Forum rules


No cyber-bullying, no racism, no spam! Keep discussions civil and respectful or you will be banned!



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Feb 24, 2016 4:34 pm 
Offline
User avatar

Joined: Sun Oct 20, 2013 11:53 pm
Posts: 967
something I coded up quickly to start an exploration of odds.

requires python, termcolor and colorama (available via easy_install or pip)

just uncomment or comment the runes you want to use, and change the DESTINY as needed.

Code:
import random

# thought i might use this, but didn't
#import itertools

from termcolor import colored
from colorama import init


# number of runes you draw
DESTINY = 5

# you can comment out the runes you don't have
# in essence using the # (hash)
RUNES = [    ('tiwaz','red')
         ,('berkano','red')
#         ,('ehwo','red')
#         ,('mann','red')
#         ,('claguz','red')
#         ,('ing','red')
#         ,('dagaz','red')
#         ,('othala','red')
         ,('hagalaz','blue')
         ,('naudhneed','blue')
#         ,('isaice','blue')
#         ,('jethe','blue')
#         ,('eihwas','blue')
#         ,('pertho','blue')
#         ,('elhaz','blue')
#         ,('sowsun','blue')
         ,('fehu','green')
         ,('uruz','green')
#         ,('thurisaz','green')
#         ,('ansuz','green')
#         ,('raidho','green')
#         ,('kenaz','green')
#         ,('gebo','green')
#         ,('wunjo','green')
         ]

if len(RUNES) < DESTINY:
   DESTINY = len(RUNES)
         
hand = random.sample(RUNES, DESTINY)

for x in hand:
   print(colored(x[0],x[1]))



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group