Showing posts with label Programming Week!. Show all posts
Showing posts with label Programming Week!. Show all posts

Friday, November 22, 2013

GAME PROGRAMMED IN VB : Fully intense game Friday - Programming Week! 5/5

Go to this dropbox link: jeu.exe

There's a few levels in this game (plus some hidden levels!).







P.S.:  If you want to see all the other posts for programming week all on one web page, just click on the label below, as shown in this picture:

And if you've noticed, posts are being consistently posted at exactly 10:30 AM, before lunch time.
It's not because I'm a robot.  They are auto-scheduled posts.  Very convenient. :)

Thursday, November 21, 2013

MOLECULE/ATOMIC SIMULATION : Thoughtfully atomic Thursday - Programming Week! 4/5


 Steps to using it:

  1. Go to the Dropbox link to the Atom Simulation and open the excel file.
  2. Enable macros.
  3. Hit these keys:  Alt, w, m, v, Enter.
  4. Hold:  Enter.
  5. Watch as the animation goes (you can also control/manipulate the atoms/electrons, and see what reactions you can create).  It's a little "messy", but I guess that mimics real life better.
(By the way, I more recently learned how to make an animated .gif file using gimp!)





It works even if you don't have some SDK installed for VB; it runs within Excel, so you can run it anywhere you have Office installed.  The only catch I've had with VB inside Excel is that I can't use a timer like when I program the usual exe files, but then again, being able to "control" time with the Enter key makes it convenient to pause (which sorta reminds me of "fail-safe" systems).

With the green commandbutton selected (or recently pressed), you can move the yellow "nucleus/proton" (a,s,d,w = left, down, right, up).

Try playing with it and see what happens.

How do the "electrons" move when they're closer/farther from the nuclei?
Can you create an ionic/covalent bond?
Can you pull/attract the electrons away from the other atom?
Do you see behaviour resembling "filled" shells and hence repulsion or attraction between the "atoms"?
Free radicals?
Other behaviour?

Experiment!



Programmed by yours truly.  Enjoy.  :D

P.S.:  If you want to see all the other posts for programming week all on one web page, just click on the label below, as shown in this picture:

Wednesday, November 20, 2013

TABATA : W-awesome exercise Wednesday - Programming Week! 3/5


Ta..ba..ta...?  That be ta?  Tabata?  It's another at-home exercise motivator:  20 seconds of pushups or your current favourite exercise, alternating with 10 seconds of break, for 8 reps (I'd recommend really taking the full 10 seconds to breath and relax.  I find it gets harder in the last reps.).  See this post for the 7-minute full-body workout.
P.S.:  If you want to see all the other posts for programming week all on one web page, just click on the label below, as shown in this picture:

Tuesday, November 19, 2013

NEURAL NETWORK SIMULATION : Totally neural Tuesday - Programming Week! 2/5

Go to:
https://www.dropbox.com/s/87fs1veqa45j7v4/neurons.exe

This is some old code that I made in high school.  The objective of the simulated neural network is to try to get to the "food", and not let it get away for too long.  Right now it's just trial-and-error learning.  I've been learning about some better techniques via the Coursera Machine Learning course to find ways to make the learning algorithm more robust ("educated guesses" instead of just trial-and-error, maybe even "errorless learning"?).

Some Notes:
- Observations

 
P.S.:  If you want to see all the other posts for programming week all on one web page, just click on the label below, as shown in this picture:

PONG x 3 : Mellow fun Monday - Programming Week! 1/5


Relax while testing your reaction time reflexes.

http://scratch.mit.edu/projects/14318317/

I didn't program this game from scratch (I modified a template), but I programmed it using Scratch.  [Haha.]  Anyways, "Scratch" is a free open-source programming language from MIT, a "visual" programming language one might call it (looking at it though, it's not exactly like LabVIEW, it's more like using blocks to replace some of the tedious-ies of text-based programming languages).  You can read more about Scratch and find more links on Wikipedia.
More bounces --> higher speed.

Goal: up to how high a speed can you keep the balls from hitting the ground?

Friday, November 15, 2013

ANNOUNCING: Programming Week!


Starting Monday of next week, I'll be taking out some of my good ol' programs from the cupboards, each day, for your entertainment and semi-practical use.  Why?  I don't know!
And I don't know if "Programming Week" is a real holiday, but I'll be calling it Programming Week.  For me anyways.
...And also, it won't really be a "week" because I'll only be posting for five days...
...
So happy Programming Week!
-2 days

(Sounds almost like something that would be said in Beartato.  Interesting.  Check it out:  http://nedroid.com)

Here's the menu for the week:

Mellow fun Monday
Totally neural Tuesday
W-awesome exercise Wednesday
Thoughtfully atomic Thursday
Fully intense game Friday

It'll be fun.  :D
HTC



PS:  If you want some programs now, see these ones from previous posts:
http://hchiam.blogspot.ca/2013/07/7-minute-workout-another-experiment.html
https://www.dropbox.com/s/dq048ikbawd66ld/FlashCardsHSK1.xlsm