Koni Posted August 24, 2018 Posted August 24, 2018 (edited) My FIRST program !!!... The RED is running very fast and get you !!!... The GREEN eats your 4 BIG Circles !!!... The BLUE make NEW o o o o o points - after you have eaten them !!!... This Calculator is made NOT with { arithmetic VARIBLES } - but with { character VARIABLES } !!! The Character-Variables are { very Large } but you cannot make calculations with them !!! So ... I had to give with code ... the addition ... the supstraction ... the multiplication ... With my Character-Calculator , I made: 2 * 2 = 4 4 * 4 = 16 16 * 16 = 256 and so on .... I could after 2 + 1/2 Hours calculate 2^4096 = a Number with 1234 Digits !!! (look Image) Koni Edited August 24, 2018 by Koni 1
Sensei Posted August 24, 2018 Posted August 24, 2018 (edited) Why are you using such crazy colors? Later people think/say that programmers have no good artistic taste.. Applications/games should be designed such a way that they are pleasant to eye of user. Edited August 24, 2018 by Sensei
Koni Posted August 24, 2018 Author Posted August 24, 2018 They are MY programs !!! - They are NOT for sale !!!... - and I like Colors !!!... Hahahahaha!!!... 1
Sensei Posted August 24, 2018 Posted August 24, 2018 This weekend assignment (to improve your skills ): What Visual Basic can offer in 3D visualization? Make box rotating in 3D, with shading.. It could be done with couple (actually 6) draw polygon commands.. Do you know how to rotate vector in 3D? And how to transform from 3D to 2D screen display (perspective projection).. ? Do you heard about scan-line algorithm? (you will have to check Visual Basic if drawing pixel-by-pixel is not too slow.. will depend on your machine specification a bit) Are you using double-buffering? (to have no flickering of fast changing animations, obviously) If you will master 3D visualization, you will be able to make 3D versions of your games.
Koni Posted August 24, 2018 Author Posted August 24, 2018 (edited) Sorry !!!... But at age 40 ( I am now 55 ) I went to a 2 years afternoon school to learn a little Computer !!!... The { Visual Basic 6 } programs which we made in school had only 10-20 Lines of Code !!!... I bought a book and learnt something more !!! I had from nobody a HELP !!!... I made ALL on my own !!!... So ... I don't know very well programming !!!... I have only the skills to make my own simple programs !!!... ( I think that "Delphi" has 3D visualization ) !!!... Koni1963 The secret behind my Pac-Man game !!!... At each point (square) the 4 NUMBRES indicate in which Directions can they play !!!... Then ... with "randomize" is choosen the one Direction of them !!!... Koni Edited August 24, 2018 by Koni
Sensei Posted August 24, 2018 Posted August 24, 2018 (edited) It's good that you have passion, and enthusiasm to learn something new. I just gave you idea what can be done later. Don't give up. The more you're programming, the better you're in it. It doesn't matter at what age you started. More matters if you want to learn something new and improve your skills or prefer watching TV or other works.. (I am programming and watching TV at the same time ).. Do it on daily basis, and you will be master. One day, one (small) application. Pick up subject by yourself. 3D visualization is natural thing in modern times, so I wrote about it. You would learn matrix multiplication, how to create projection matrix etc. etc.. In the first year of programming, I believe so, students at university are learning how to program OpenGL, and make some "boxes and spheres" (rotated in animation or spin by mouse or keyboard by user). These two things can be joined easily and made ball-n-stick model of chemical compound. Two sciences (computer programming and chemistry) at the same time. Edited August 24, 2018 by Sensei
Koni Posted August 24, 2018 Author Posted August 24, 2018 The Problem is that my "Visual Basic 6" is 32 bit and plays only on Windows-7 and NOT more on Windows-10 !!!... And now I have NO other NEW ideas to make something !!!... ( and forget bit-by-bit all that what I had learnt ... ) ( I have made my 9 chess-boards ) - ( look at my other article : "Evolutionary Transformers Chess" ) I am HAPPY with THAT what I could make for myself !!!... Have a nice Day my Friend !!!... - EVERY Day of your Life !!! Koni
Sensei Posted August 24, 2018 Posted August 24, 2018 Download Visual Studio 2008 Express ISO from this link: https://www.google.com/search?q=download+visual+studio+express+2008 (Do you know how to burn ISO?) Then install it. It has Visual C/C++/C# .NET Framework. Try it instead of Visual Basic. Watch this video "how to make calculator in C# in Visual Studio": There is couple parts of this video. Simply install VS, and follow this tutorial. 1
Koni Posted August 24, 2018 Author Posted August 24, 2018 THANK YOU very-very much Sensei !!! I will try it !!!
Sensei Posted August 24, 2018 Posted August 24, 2018 5 minutes ago, Koni said: And now I have NO other NEW ideas to make something !!!... You can ask this forum for ideas what to make this "day of programming".. Google for "programming job challenges" etc. There are websites which are checking candidates for job in IT software company. Exercises from the simplest one to the hardest one. Forget that you're not applying to job in IT, and use them as exercises ("inspirations") what to program today. They are not programs with GUI though. But your brain might hurt by some of them..
Koni Posted August 24, 2018 Author Posted August 24, 2018 24 minutes ago, Sensei said: 13 minutes ago, Sensei said: You can ask this forum for ideas what to make this "day of programming".. Google for "programming job challenges" etc. There are websites which are checking candidates for job in IT software company. Exercises from the simplest one to the hardest one. Forget that you're not applying to job in IT, and use them as exercises ("inspirations") what to program today. They are not programs with GUI though. But your brain might hurt by some of them.. THANK You Sensei !!! It is very nice your consern about Me !!! But since 5 years I buy and read "Biology Books" and have NEW interests !!!... Biology is more "complex" - compering with Computers !!!... You have the Proteins-Enzymes the "Molecular Machines" of the Cell !!!... It is a REAL and "fantastic" micro-world !!!... ( At age 33 I got shizophrenia and then cancer too !!!... So ... I lost my Job and I had not the opurtunity to make my own Family !!!... So... I have to do always something ... to forget my problems !!!... ) Koni
Sensei Posted August 24, 2018 Posted August 24, 2018 You can join interest in biology with programming.. https://en.wikipedia.org/wiki/Conway's_Game_of_Life "artificial life" in "artificial world".. https://en.wikipedia.org/wiki/Artificial_life
Koni Posted August 24, 2018 Author Posted August 24, 2018 THANK You Sensei !!!... But "artificial Life" is NOT of mine interests because my oppinion is that Computers cannot be alive !!!... From a Computer you need consistently to always get the same result !!!... Life requires flexibility to change when changing external environmental conditions !!!... That are two(2) very different thinks !!! Koni
Sensei Posted August 24, 2018 Posted August 24, 2018 (edited) 6 minutes ago, Koni said: From a Computer you need consistently to always get the same result !!!... That's what for is (pseudo-)random-number generator.. https://en.wikipedia.org/wiki/Random_number_generation https://en.wikipedia.org/wiki/Pseudorandom_number_generator Edited August 24, 2018 by Sensei
Koni Posted August 24, 2018 Author Posted August 24, 2018 (edited) But Live is NOT a random process !!!... Life has Biological and Biochemical rules !!!... Only Life is very-very more "complex" than anything Humans have made !!!... Koni Edited August 24, 2018 by Phi for All No advertising, please
Sensei Posted August 27, 2018 Posted August 27, 2018 (edited) On 24.08.2018 at 2:39 PM, Koni said: The secret behind my Pac-Man game !!!... At each point (square) the 4 NUMBRES indicate in which Directions can they play !!!... Then ... with "randomize" is choosen the one Direction of them !!!... It's called bitfield/mask/flag: https://en.wikipedia.org/wiki/Bit_field You could reduce amount of data which is required to inform which direction is "clear", and which is wall, using bits, instead of decimal digits. It can be done with just 4 bits. 1 bit for up, 1 bit for down, 1 bit for left, 1 bit for right. 2^4 = 16 possible states (from 0...15).. Suppose so 1 is left, 2 is right, 4 is top, and 8 is bottom. To check bitfield there is needed to use bitwise operation https://en.wikipedia.org/wiki/Bitwise_operation AND bitwise operator is & OR bitwise operator is | so checking if object can go left/right/top/bottom could be done using: if( field & 1 ) printf( "Object allowed to move left\n" ); if( field & 2 ) printf( "Object allowed to move right\n" ); if( field & 4 ) printf( "Object allowed to move top\n" ); if( field & 8 ) printf( "Object allowed to move bottom\n" ); Edited August 27, 2018 by Sensei
Koni Posted August 27, 2018 Author Posted August 27, 2018 THANK You Sensei !!!... It is very kind of you to share your knowledge with me !!!... 1 = 0001 2 = 0010 4 = 0100 8 = 1000 If we Humans ... had 8 fingers in our 2 Hands ( 2*8=16 ) we could also easy write the Numbers from our Hexadecimal arithmetic system >>> to the Binary system ... without "calculations" !!!... Kni
Sensei Posted August 27, 2018 Posted August 27, 2018 53 minutes ago, Koni said: 1 = 0001 2 = 0010 4 = 0100 8 = 1000 To disallow making mistake there is typically added % character prior binary number e.g. 1 = %0001 2 = %0010 4 = %0100 8 = %1000 Hexadecimal number should have prefix $ or 0x e.g. 255 = $FF = 0xFF
Koni Posted August 27, 2018 Author Posted August 27, 2018 THANK You Sensei !!!... IF i had you as my Teacher THEN i would be a GOOD Programmer !!!... END IF Kni
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now