• Recently Browsing   0 members

    No registered users viewing this page.

Tobbe

TODO 2019 PvP [Jan 1 - Dec 29]

Recommended Posts

Would anyone in this thread like to talk about this challenge in the chat room on the forum? Post what times you'd be available to chat and I'll see if I can accommodate my schedule to make it.

Share this post


Link to post
Share on other sites
17 hours ago, Rubik'sCat said:

Would anyone in this thread like to talk about this challenge in the chat room on the forum? Post what times you'd be available to chat and I'll see if I can accommodate my schedule to make it.

 

I'm not a big fan of chat rooms (I've spent way too much time in them back in the days) but I'll gladly discuss whatever you want either here or by PM. :)

 

 

19 hours ago, Tobbe said:

I just wasn't sure what to call those pages that let you write some html, css and JavaScript and run it. There are a few options. The most popular I think are http://codepen.io, http://jsfiddle.net and http://jsbin.com

 

Yay! I've got one of those! I call it my trusty Notepad editor and Firefox browser. :D

 

Anyway, like WhiteGhost, I went for JavaScript (great minds and all that...), using JavaScript.info as my manual. It's not a very intuitive language because it's made to fit the brains of people who use it regularly so that their task can be accomplished more efficiently, so my code is ugly. Anyway, I've made a little Rock, Paper, Scissors simulator that you can find here: http://www.jeancarron.ch/RockPaperScissors/RockPaperScissors.html

 

The code if anybody is interested:

Spoiler

"use strict";

let name = prompt ("Hello, what's your name?");
if (name != null && name != "") {
	let game_on = confirm (`${name}, do you want to play a game?`);
	if (game_on == true) {
	
		function GenerateRandomNumber (min_value , max_value) {
			let random_number = Math.random() * (max_value-min_value) + min_value;
			return Math.floor(random_number);
		}
		Play_again_loop:
			for ( ; ; ) {
			alert ("Ready?");
			let computer_draw = GenerateRandomNumber (1 , 4);
			let player_choice = prompt ("Rock, paper or scissors?");
			alert ("1... 2... 3...");
			
			switch(player_choice) {
				case "Shotgun":
					alert("Ok, ok, you win. I'm not dying on this hill.");
					break Play_again_loop;
					break;
				case "shotgun":
					alert("Ok, ok, you win. I'm not dying on this hill.");
					break Play_again_loop;
					break;
				case "Rock":
					if (computer_draw == 1) {
						alert("Rock!");
						game_on = confirm("That's a draw! Try again?");
						if (game_on == false) {break Play_again_loop;};
					} else if (computer_draw == 2) {
						alert("Paper!");
						game_on = confirm("You lose! Try again?");
						if (game_on == false) {break Play_again_loop;};
					} else {
						alert("Scissors!");
						game_on == confirm("You win! Try again?");
						if (game_on == false) {break Play_again_loop;};
					}
					break;
				case "rock":
					if (computer_draw == 1) {
						alert("Rock!");
						game_on = confirm("That's a draw! Try again?");
						if (game_on == false) {break Play_again_loop;};
					} else if (computer_draw == 2) {
						alert("Paper!");
						game_on = confirm("You lose! Try again?");
						if (game_on == false) {break Play_again_loop;};
					} else {
						alert("Scissors!");
						game_on = confirm("You win! Try again?");
						if (game_on == false) {break Play_again_loop;};
					}
					break;
				case "Paper":
					if (computer_draw == 1) {	
						alert("Rock!");
						game_on = confirm("You win! Try again?");
						if (game_on == false) {break Play_again_loop;};
					} else if (computer_draw == 2) {
						alert("Paper!");
						game_on = confirm("That's a draw! Try again?");
						if (game_on == false) {break Play_again_loop;};
					} else {
						alert("Scissors!");
						game_on = confirm("You lose! Try again?");
						if (game_on == false) {break Play_again_loop;};
					}
					break;	
				case "paper":
					if (computer_draw == 1) {	
						alert("Rock!");
						game_on = confirm("You win! Try again?");
						if (game_on == false) {break Play_again_loop;};
					} else if (computer_draw == 2) {
						alert("Paper!");
						game_on = confirm("That's a draw! Try again?");
						if (game_on == false) {break Play_again_loop;};
					} else {
						alert("Scissors!");
						game_on = confirm("You lose! Try again?");
						if (game_on == false) {break Play_again_loop;};
					}
					break;
				case "Scissors":
					if (computer_draw == 1) {
						alert("Rock!");
						game_on = confirm("You lose! Try again?");
						if (game_on == false) {break Play_again_loop;};
					} else if (computer_draw == 2) {
						alert("Paper!");
						game_on = confirm("You win! Try again?");
						if (game_on == false) {break Play_again_loop;};
					} else {
						alert("Scissors!");
						game_on = confirm("That's a draw! Try again?");
						if (game_on == false) {break Play_again_loop;};
					}
					break;
				case "scissors":
					if (computer_draw == 1) {
						alert("Rock!");
						game_on = confirm("You lose! Try again?");
						if (game_on == false) {break Play_again_loop;};
					} else if (computer_draw == 2) {
						alert("Paper!");
						game_on = confirm("You win! Try again?");
						if (game_on == false) {break Play_again_loop;};
					} else {
						alert("Scissors!");
						game_on = confirm("That's a draw! Try again?");
						if (game_on == false) {break Play_again_loop;};
					}
					break;
				case null:
					game_on == false;
					break Play_again_loop;
					break;
				default:
					alert("Uh?");
					game_on == false;
					break Play_again_loop;
					break;
			}
			
		}
	}
}

 

 

  • Like 1

Share this post


Link to post
Share on other sites

I, of course, had grand schemes of what I was going to do for the challenge this week. Seeing as I write code for a living this should be super easy for me. But, as often happens, I just ended up collecting a lot of underpants instead of actually producing any code :(  

 

So I went on to do other things, like updating my challenge threads. I was updating completed NF quests for this post https://rebellion.nerdfitness.com/index.php?/topic/112245-tobbe-catches-up-and-pleases-his-wife/&do=findComment&comment=2457004 and actually ended up leveling up! That's when I noticed that the flag that pops up telling you that you've reached a new level was partly hidden by my user info. Clearly a bug in the page source code!

 

So I went about fixing that!

 

Before:

 

level14_zindex_before.jpg.4ffdccf70400932ac0b0db28956b3ca1.jpg

 

After:

 

level14_zindex_after.jpg.7ae91c52d5672770199a6404b7981da2.jpg

 

Notice how in the "before" image the upper right part of the flag is obscured by my character info. In the "after" image the character info is behind the flag instead, like it should be (IMO).

 

The code to fix this bug can be found on my GitHub: https://github.com/Tobbe/nerdfitness_levelup_flag_z-index/blob/master/NF_levelup_flag_z-index.user.js

If you want to install the fix for yourself the script is hosted here: https://openuserjs.org/scripts/tlundberg/Nerd_Fitness_Quests_Levelup_flag_z-index

 

So yeah, my submission for this week's TODO is pretty much one measly line of code... :( Ohh well. Nothing is stopping me from doing what I was planning/dreaming of doing some other time! :) 

 

EDIT:

Recorded a vlog as well :) 

 

 

 

  • Like 4

Share this post


Link to post
Share on other sites

New TODO task

 

It's Sunday, so it's time to announce next week's randomly selected TODO task! This thread has 746 views right now, which means the link is https://www.random.org/integers/?num=200&min=1&max=200&col=10&base=10&format=plain&rnd=id.746

 

The first number in the randomly generated list of numbers is: 90! And task number 90 in the list is

 

Post a vlog here on the forums

 

 

 

  • Like 2

Share this post


Link to post
Share on other sites
59 minutes ago, Tobbe said:

So I went on to do other things, like updating my challenge threads.

 

This is a great way to handle it, if you ask me. After all, the purpose of this challenge is to upgrade our own self, if there wasn't much for you to learn anymore with this task...

... and even with that, you still manage to find a way to do this task in a useful way. Way to go, you amazingly awesome you!

 

38 minutes ago, Tobbe said:

It's Sunday, so it's time to announce next week's randomly selected TODO task!

 

Aww man, I hate vlogs. Guess it's time for me to pick up my courage and try to make one anyway. Thanks for this new draw. :)

Share this post


Link to post
Share on other sites

I'd like to join! 

I did #63.

My basement / office became the catchall before, during & after Christmas along with one of my children graduating college and bringing all belongings home. Decluttered my kitchen cupboards, drawers and pantry getting rid of all the stuff on the table. It's kind of embarrassing the state those rooms were but now they are done! 

 

20190106_232453.jpg

20190106_232536.jpg

20190106_232520.jpg

20190106_232603.jpg

20190106_232353.jpg

  • Like 3

Share this post


Link to post
Share on other sites

I edited my post about what I did for the first weekly TODO task, and added a vlog to it :D  I planned to do a vlog all along, and I thought some of you other people might do it as well. But so far I'm the only one who did it. But for this week I hope to see a lot of vlogs, since that is the randomly chosen task for week #2!

 

Anyway... Here's my vlog for task #1 (so that you don't have to scroll up to find it ;))

 

 

  • Like 3

Share this post


Link to post
Share on other sites

@jmk

908910707_download(1).jpeg.ebaeb86c9ce44c4dd974205daf4594d2.jpeg

 

@Tobbe

Thanks for being the first to upload a vlog :thumbup: A lot of users don't know what others look like or sound like and that's kind of what makes it scary...the being judged. You're awesome. How did you imbed a YT video on the forum?

 

 

Share this post


Link to post
Share on other sites
3 minutes ago, Rubik'sCat said:

that's kind of what makes it scary

 

It was super scary! But now that's done with. Next one will be much easier! It's kind of like going swimming. Just jump in to the cold water to get it over with. After that it's much easier :D 

 

 

2 minutes ago, Rubik'sCat said:

How did you embed a YT video on the forum?

 

Just paste a link to a YouTube video and the forum does the rest for you :) 

Share this post


Link to post
Share on other sites
2 minutes ago, WhiteGhost said:

Nice, looks good :)  I am planning mine, but will probably do it later in the week

 

Note that that was the vlog for task #1. The vlog for this week, task #2, will come later :) 

  • Like 1

Share this post


Link to post
Share on other sites

Well, hopefully I'll squeeze in my bit of code that actually worked (anonymized as needed)

 

 

Quote

curl -X POST "http://DOCKER_HOST/smartcast-api/v1/spaces/energy?page_size=100&page_number=1" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"start_date\": \"2018-08-09T09:00:00.000Z\", \"end_date\": \"2018-09-11T09:00:00.000Z\", \"business_hours_only\": false, \"time_unit\": 0, \"weekday_start\": 1, \"weekday_end\": 7}"

 

Share this post


Link to post
Share on other sites
4 hours ago, Doe said:

Well, hopefully I'll squeeze in my bit of code that actually worked (anonymized as needed)

 

No problem, you're well in time :) I'll add your score for the code!

Share this post


Link to post
Share on other sites

I've updated the score table. Please check that you've gotten the points you deserve!

 

Player Completed (1p) Text (2p) Photo (2p) Video (3p) Vlog (5p) Random (5p) Star Total score
Rubik'sCat 62 61           62 2
Arkania 56 1 1       56   9
JulietKitsch 95 95 95         5
WhiteGhost 56 56       56   8
Jean 56 56       56   8
Tobbe 56 56 56   56 56 56 15
jmk 63 63 63         5
Doe 56         56   6



I gave myself a star Star for being the first to post a vlog. I waited until the very last moment before I posted it. But no one else posted any, so I'll get the star :) 

Share this post


Link to post
Share on other sites
39 minutes ago, jmk said:

Do I have to be in the vlog or can I just talk about what I'm shooting? 

 

@Tobbe great job! 

 

Since "vlog" means video-blog I think we don't necessarily have to but to me the rules are a bit fuzzy the way I see it. I don't think you would have take points taken away from you though. 

Share this post


Link to post
Share on other sites
3 hours ago, jmk said:

Do I have to be in the vlog or can I just talk about what I'm shooting? 

 

2 hours ago, Rubik'sCat said:

Since "vlog" means video-blog I think we don't necessarily have to but to me the rules are a bit fuzzy the way I see it. I don't think you would have take points taken away from you though. 

 

Actually I do want you to be in the vlog. I know it's more uncomfortable/scary, but that's the whole point! That's also why you get more points for posting a vlog (5p) as opposed to a video (3p) :) 

 

EDIT: If you don't want to post a vlog you're free to pick any other task, you just wont get the extra points for doing the randomly selected task this week :) 

Share this post


Link to post
Share on other sites
On 1/7/2019 at 12:24 AM, Tobbe said:

 

EDIT:

Recorded a vlog as well :) 

 

 

 

You need to smile a lot more :D

But: Well done Sir!

On 1/7/2019 at 12:45 AM, Tobbe said:

New TODO task

 

 

Post a vlog here on the forums

 

 

 

 

So how about getting the points to vlog about the vlog? :D

 

 

E: For my personal challenge random.org chose " Buy a food you've never eaten before."

 

Don't even know what to blog about.

E2: Does it count for both, this todo and my todo, if I vlog about a food?
So do I then get the points for this weeks PVP AND points for vlogging about my todo?

Share this post


Link to post
Share on other sites
4 hours ago, Arkania said:

So how about getting the points to vlog about the vlog?

 

If you vlog yourself vlogging, I'll give you a golden star :D;)  

 

4 hours ago, Arkania said:

E2: Does it count for both, this todo and my todo, if I vlog about a food?

 

If you post two vlogs it does :) 

 

4 hours ago, Arkania said:

So do I then get the points for this weeks PVP AND points for vlogging about my todo?

 

Again, sure, if you post two vlogs :) 

 

Share this post


Link to post
Share on other sites

Post a vlog here on the forums

 

I recorded a video of my taking my regular daily walk (it used to be "morning walk", but I've slipped a little bit and now it sometimes happens after noon, so let's call it "daily" instead ;)). I'm not a very chatty person, so it was really difficult to come up with things to say. Had to think a lot, so it's a bit slow... :) And I recorded this before I got @Arkania's suggestion of smiling more. Will try to remember that for next vlog!

 

It takes longer than you think to upload the video from my phone to google drive, download it, edit it and then upload it to YouTube... If I could just record and then right away upload to YouTube it wouldn't be so much work :) 

 

Here's a screenshot of my editing session

 

openshot_ss.png.15647ab92dcac975fbf12b7718c66cff.png

 

Did a quick google research about what (free) video editing program to use, and ended up choosing OpenShot. It was very easy to work with, so I can recommend it to anyone else who doesn't yet already have a favorite.

 

And, finally, here's the actual vlog!

 

 

 

  • Like 2

Share this post


Link to post
Share on other sites
5 minutes ago, Arkania said:

I don't even know what to talk about in ONE vlog :D:D

 

That's not important. See my ramblings above for the proof of that! :D Just get over the fear (if you have any) of posting a video of yourself speaking and you'll get the points :) 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.