Skip to content

Instantly share code, notes, and snippets.

@EricsonWillians
Created September 21, 2015 22:10
Show Gist options
  • Save EricsonWillians/ee3cbe407a3e1b74ccad to your computer and use it in GitHub Desktop.
Save EricsonWillians/ee3cbe407a3e1b74ccad to your computer and use it in GitHub Desktop.
Attempt to discover all the possible astrological configurations without considering angles and whatever for obvious reasons
# -*- coding: utf-8 -*-
#
# astrological_possibilities.py
#
# Copyright 2015 Ericson Willians (Rederick Deathwill) <EricsonWRP@ERICSONWRP-PC>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
#
#
from collections import OrderedDict
from itertools import product, chain
planets = ["Sun", "Moon", "Mercury", "Venus", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune", "Pluto"]
zodiac_signs = OrderedDict([
("Aries", "Ram"),
("Taurus", "Bull"),
("Gemini", "Twins"),
("Cancer", "Crab"),
("Leo", "Lion"),
("Virgo", "Virgin"),
("Libra", "Balances"),
("Scorpio", "Scorpion"),
("Sagittarius", "Archer"),
("Capricorn", "Goat"),
("Aquarius", "Water bearer"),
("Pisces", "Fishes")
])
def main():
possible_combinations = list(chain(product(planets, list(zodiac_signs.keys())), product(list(zodiac_signs.keys()), planets)))
out = open("astrofuck.txt", 'w')
possible_astrological_configurations = list(product(*possible_combinations))
out.write(str(possible_astrological_configurations))
return 0
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment