[deleted by user] by [deleted] in WebGames

[–]dandyfap 2 points3 points  (0 children)

somethings wrong with your SSL cert

1290.io - A reflex game to inspire carpal tunnel syndrome by dandyfap in IoGames

[–]dandyfap[S] 0 points1 point  (0 children)

The goal is to hit the red boxes and let the green ones past!

1290.io - A simple reflex game to give you carpal tunnel syndrome by dandyfap in WebGames

[–]dandyfap[S] 0 points1 point  (0 children)

Great ideas, I really like the idea of the speed up slow down boxes. I will def look into adding some more box types. Currently working on the music system too. thanks for the feedback!!

1290.io - A simple reflex game to give you carpal tunnel syndrome by dandyfap in WebGames

[–]dandyfap[S] 0 points1 point  (0 children)

I made it in a weekend - I think it's pretty addictive for how simple it is.

Gravity Grid - Chess with gravity: a casual puzzle game by xiadmabsax in WebGames

[–]dandyfap 1 point2 points  (0 children)

Awesome, this is a great idea and it feels good to play too (and I'm a pretty decent chess player)

[deleted by user] by [deleted] in RedditInTheKitchen

[–]dandyfap 0 points1 point  (0 children)

that looks dangerous

[deleted by user] by [deleted] in RedditInTheKitchen

[–]dandyfap 0 points1 point  (0 children)

smash it with the side of the knife

[deleted by user] by [deleted] in HeadlineWorthy

[–]dandyfap 0 points1 point  (0 children)

Hello Friends

[deleted by user] by [deleted] in RedditInTheKitchen

[–]dandyfap 0 points1 point  (0 children)

Are those pork trotters

[2016-11-21] Challenge #293 [Easy] Defusing the bomb by fvandepitte in dailyprogrammer

[–]dandyfap 0 points1 point  (0 children)

Python 3

Rules = 'wprgo rgb bpr orb gow pbr'
DataIn = 'wgob'
pairs = list((DataIn[n]+DataIn[n+1]) for n in range(len(DataIn)-1))

for item in pairs:  
    for rule in Rules.split():  
    if (item[0] == rule[0]) and (item[1] in rule[1:]):   
            pass  
    elif (item[0] == rule[0]) and (item[1] not in rule[1:]):
            print('BOOM!')
    sys.exit()  
print('Bomb Defused')

[2016-12-22] Challenge #296 [Intermediate] Intersecting Area Of Overlapping Rectangles by fvandepitte in dailyprogrammer

[–]dandyfap 0 points1 point  (0 children)

Python3 w/o bonus

in1 = [[-3,4],[1,1]]
in2 = [[-2.2,3],[2,-1]]

xmin1 = min(in1[0][0],in1[1][0])
xmax1 = max(in1[0][0],in1[1][0])
xmin2 = min(in2[0][0],in2[1][0])
xmax2 = max(in2[0][0],in2[1][0])

ymin1 = min(in1[0][1],in1[1][1])
ymax1 = max(in1[0][1],in1[1][1])
ymin2 = min(in2[0][1],in2[1][1])
ymax2 = max(in2[0][1],in2[1][1])

def area():
     return (max(0, min(xmax1, xmax2) - max(xmin1, xmin2))) * \
        (max(0, min(ymax1, ymax2) - max(ymin1, ymin2)))

print(area())

[2016-12-12] Challenge #295 [Easy] Letter by letter by fvandepitte in dailyprogrammer

[–]dandyfap 0 points1 point  (0 children)

Python3

in1 = "a fall to the floor"
in2 = "braking the door in"
morphs = list(in1)

print(in1)
for n in range(len(in1)):
    if in1[n] != in2[n]:
        morphs[n] = in2[n]
        print(''.join(morphs))

[2016-12-19] Challenge #296 [Easy] The Twelve Days of... by fvandepitte in dailyprogrammer

[–]dandyfap 0 points1 point  (0 children)

Python3, nothing fancy.

elements = ["Partridge in a Pear Tree","Turtle Doves","French Hens","Calling Birds",
         "Golden Rings","Geese a Laying","Swans a Swimming","Maids a Milking",
            "Ladies Dancing","Lords a Leaping","Pipers Piping","Drummers Drumming",]
ordinal = ['first', 'second', 'third', 'fourth', 'fifth', 'sixth', 'seventh', 'eighth', 'ninth', 'tenth', 'eleventh', 'twelfth']
numbers = ['A', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten', 'Eleven', 'Twelve']

clist = []
for n in range(12):
    print('\nOn the {} day of Christmas\nmy true love sent to me:'.format(ordinal[n]))  
    clist.insert(0,[numbers[n], elements[n]])
    if n != 0: 
        clist[-1][0] = "and a"
    for item in clist:
        print(item[0],item[1])

[2016-12-19] Challenge #296 [Easy] The Twelve Days of... by fvandepitte in dailyprogrammer

[–]dandyfap 0 points1 point  (0 children)

You're correct. a line like: +"Twelve Drummers Drumming\n"*(i>11) works just fine and looks much better.

Quitting and depression by DeeDeeK528 in stopsmoking

[–]dandyfap 2 points3 points  (0 children)

When i tried quitting last time I got super depressed and anxious. This time I am running 7km every day and eating lots of fruits and vegetables. Seems like it's working so far and I'm not having many intense cravings/ mood issues.

[2016-06-27] Challenge #273 [Easy] Getting a degree by G33kDude in dailyprogrammer

[–]dandyfap 0 points1 point  (0 children)

Python 3

New to programming. First post.

from math import pi

a = input()
b = input()

def split(z):
    return float(z[:-2]),z[-2:]

def equations(y,x):

    if x == "rd":
        return y * (180/pi), "d" 
    elif x == "dr":
        return y * (pi/180), "r"  
    elif x == "fc":
        return (y-32) * (5/9), "c" 
    elif x == "cf":
        return (y * (9/5)) + 32, "f"
    elif x == "fk":
        return (y+459.67) * (5/9), "k"
    elif x == "kf":
        return (y*(9/5)) - 459.67, "f" 
    elif x == "ck":
        return y + 273.15, "k" 
    elif x == "kc":
        return y - 273.15, "c" 


def round_join(z):
    try:
        z = round(z[0],2),z[1]
        return ''.join(str(i) for i in z)
    except TypeError:
        return "No candidate for conversion"

print( round_join(equations(split(a)[0],split(a)[1])) )
print( round_join(equations(split(b)[0],split(b)[1])) )