Below you will find pages that utilize the taxonomy term “CodinGame”
Posts
Mars Lander 2 trigonometry - C# tutorial - CodinGame
Topics:
explanation of the trigonometry calculation of the landing angle
ArcoSine is the function to get the angle from the sine (desired acceleration)
conversion from angle in radians to angle in degrees
Solution Spoiler alert: first try to solve the problem by yourself. Or, try to write the code by yourself, while following the video tutorial.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 using System; // used by Math and by Console using System.
Posts
Mars Lander 2 - C# tutorial - CodinGame
Topics:
convert one line of text into a “List of integers”
“Tuple”: to group individually named-variables
“List of Tuple”: to identify the landing area
“Properties” can be used to give a name to often-used formulas
Solution Spoiler alert: first try to solve the problem by yourself. Or, try to write the code by yourself, while following the video tutorial.
Posts
Excel - Sudoku validator tutorial - CodinGame
click here to download the Tutorial Files
Topics:
Rules of the sudoku puzzle.
CodinGame puzzle’s inputs and expected outputs.
How to show arrows indicating the ‘precedents’ (the input cells for the current cell’s formula).
How to convert input text into many Excel cells (“space separated” information).
COUNTIF().
INDEX() to re-arrange cells (like we did in the Onboarding tutorial).
Posts
Descent - Python tutorial - CodinGame
Topics:
loop inside a loop
the “for” loop
“to run a program”: step-by-step
“debugging”: eliminating a mistake in in the code
Posts
Excel - Ascii Art tutorial - CodinGame
click here to download the Tutorial Files
Topics:
CodinGame “Show Testcases” button, to see inputs and outputs of many puzzles.
MID() to get part of a text.
FIND() find the position of a text inside another text.
UPPER() to convert a text to upper case.
Posts
Mars Lander - Python tutorial - CodinGame
Topics:
We create our first “method”.
We create our first “function”.
Bool variables.
Constants.
Conditions: “ternary operator”.
“class” defined, for now, as “a group of Methods and Functions”.
How to compare your code with other people’s code in CodinGame.
Posts
Excel - Thor tutorial - CodinGame
Topics:
Thor puzzle explanations, inputs, and outputs.
Giving a unique code for each board’s cell: string & string.
Locking rows and columns of a formula with $ and the F4 key.
Showing the goal/light on the grid: IF(condition, valueIfTrue, valueIfFalse).
Moving Thor step by step towards the goal.
CodinGame OUTPUT: choose(index, valueIf1, valueIf2, valueIf3).
Beyond the solution: let’s also show the path of Thor in the board.
MATCH() formula. How to find an element in a group.
Posts
Onboarding - Python tutorial - CodinGame
Variables: string, integer data types.
Convert string to integer number.
Comments: # single line and multi-line '''
Inputs and Outputs: input(“question”) print(“output”).
Loop: while
Step-by-step code execution: what “RUN” means, and the “Debug” button.
Conditions: if then else
Posts
Excel introduction - Onboarding tutorial - CodinGame
Topics:
Instead of Excel, you can use “LibreOffice Calc”.
Variable type: String/Text (left aligned).
Variable type: Number (right aligned).
Variable type: Date (right aligned).
Variable type: Boolean (aligned to the centre).
Cell name.
Formulas (usually begin with =).
Solving the CodinGame Onboarding puzzle in Excel: inputs, outputs.
Rearranging data from vertical to horizontal, and creating groups of four.
Copy & “paste-special”, with transpose.
INDEX(group_of_cells, pointer), cell I6 = INDEX($D$6:$D$65, $H6 * 4 + I$4)
Posts
Mars Lander - C# tutorial - CodinGame
Topics:
Constants.
We create our first “method”.
We create our first “function”.
Bool variables.
Conditions: “ternary operator”.
“class” defined, for now, as “a group of Methods and Functions”.
How to compare your code with other people’s code in CodinGame.
Posts
Onboarding - C# tutorial - CodinGame
Variable types: string
Variable types: integer
Conversion from string to integer
Comments in C#
Input, Output
Loop: while (condition)
Conditions: If Else
How to learn to code