We are in the best place at the best time of our lives being here. Just the thought of me writing something and you consuming what I have written is beyond belief that we will all one day have the means to enable us to pursue a more fulfilling life.
This video landed on my feed this morning and I was seriously contemplating on writing about the current state of the world we all find ourselves in today but I guess that idea was just an idea unable to take root in the electrical realm we area all here for.
#hive is the second place blockchain gaming is prevalent today. While the interview is with the Wax blockchain CGO I am elated with the mention. I did not think our platform. Yes, our platform I said it, I am taking ownership of where we are all spending our time a lot more than other platforms today. Well I at least this is where I am finding myself a whole lot more than any other ones of late.
There are multiple people I have started to feel like I am making genuine connections with here. I thank for this. I was in my little cave for a long time. Not because I am in an anti social social club but I just found myself being a hermit online. Sometimes I do prefer my company. The conversations are always never dull.
I think as long as you don't respond to your own conversation you are less likely to be labelled as insane. Then again its all subjective really after all we are our biggest audience and our most loyal ally. The me, myself and I company is something some people just cannot fathom to keep. Preferring to spend countless times with the other, whether they are imaginary or actual.
Now before I forget. I am finally done with day eleven of my hundred day coding challenge. I have to say my structuring is quite basic but I do see some improvements I can do to the codes I have compiled so far. I mean how can I not, I have in a sense attempted to really just write the codes by myself as opposed to just cutting and pasting made ones and using it as a scripting exercise as opposed to actually learning the language of coding. It is sinking in, albeit slow but it is growing in my neural garden. Roots taking shape and forming into synapsis of conscious thoughts without much effort.
That is the goal.
Like the back of my hand I will attempt to get good at it just for the heck of it.
import random
from art import logo
print(logo)
cards = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10]
user = random.sample(cards, 2)
print(user)
comp = random.sample(cards, 2)
print(comp[0])
def computer_turn(user, comp):
while sum(comp) < 18:
add = random.sample(cards, 1)
if add == 11:
add - 10
comp += add
print(comp)
if sum(user) == sum(comp):
print("Draw!")
elif sum(comp) > 21:
print("You win!")
else:
if sum(user) > sum(comp):
print("You win")
elif sum(user) > sum(comp):
print("You lose..")
def up(user, comp):
user_total = sum(user)
comp_total = sum(comp)
more_card = ""
if user_total == 21 and comp_total != 21:
print("You win!")
elif comp_total == 21:
print("Bust. You lose..")
elif user_total > 21:
for c in user:
if c == 11:
point = user.index(c)
user.remove(c)
user.insert(c, point)
print(user)
#user_total - 10
if user_total < 21:
more_card = input("Hit or Pass? h or p: ")
if more_card == "h":
add = random.sample(cards, 1)
user += add
print(user)
up(user, comp)
elif more_card == "p":
computer_turn(user, comp)
else:
print("Bust. You lose..")
else:
more_card = input("Hit or Pass? h or p: ")
if more_card == "h":
add = random.sample(cards, 1)
user += add
print(user)
up(user, comp)
elif more_card == "p":
computer_turn(user, comp)
up(user, comp)
A simple Black Jack game, unpolished and left as is because I want to be able to look back at this in the future and see the progression I hope I make in this little electronic journey I have set for myself. Comparing this to the teachers code, her structure I had already seen but did not implement, I kept it inside because I felt it was getting too unnatural for me.
I will approach coding as if I am writing a post like this. Unplanned but with a purpose and the magic should come out in the end as it is the one thing that I think will allow me to push forward.
I mean with the whole thing in front of me within my reach why would not get be hopeful.
Hey just as I write this #hbd is rising to $1.50 go the pumpers and the dumper.
Some whales are playing with their clout.
Keep it coming you beauty!