Kristian Stolen
4f2bc6f98c
Add test showing that reverse handles numbers less than zero.
2022-01-13 16:32:55 +08:00
Kristian Stolen
ed50c3e24b
fix typo.
2022-01-13 16:28:54 +08:00
Kristian Stolen
08ea76d111
Update display
2022-01-13 16:28:08 +08:00
Jeff Atwood
d2cc1389a0
Merge pull request #496 from jbrouwer5/basketball_branch
...
Basketball in Java + Python bug fix
2022-01-12 21:54:17 -08:00
Jackson Brouwer
75cca25c38
Bug fix on defense change
2022-01-12 22:50:00 -06:00
Jackson Brouwer
0c91432e5a
Added Basketball Java Version
2022-01-12 22:47:27 -06:00
Jeff Atwood
0d9d11302c
Merge pull request #495 from DyegoMaas/55_Life_csharp_refactor
...
Life in C# - fixes and better documentation
2022-01-12 16:07:34 -08:00
Dyego Maas
2ac2819151
Removed extra line printed after each generation, to better match the original's visuals.
2022-01-12 20:23:17 -03:00
Dyego Maas
b93cc409e2
Adjusted message of "invalid" generations, matching the original.
2022-01-12 20:22:26 -03:00
Dyego Maas
d52981de73
Refactoring.
2022-01-12 20:21:30 -03:00
Dyego Maas
f70b6d42dd
Refactoring.
2022-01-12 20:08:53 -03:00
Dyego Maas
7a7d92ce24
Compensated for the displacement that was occurring in the y axis by adjusting the "middle" to a valid value when working with zero based indexes.
2022-01-12 20:07:52 -03:00
Dyego Maas
5731a4df08
Temporary compensation for error calculating (possibly related to rounding) that caused misplacement of the initial pattern by 2 in the y axis.
2022-01-12 19:50:32 -03:00
Dyego Maas
fd8c02371a
Adjusting indexes.
2022-01-12 19:49:30 -03:00
Alex Gomez
eaa20ba52b
Carriage return removed
2022-01-12 16:47:45 -06:00
Nezumi Ronin
fcccf8b9ea
Merge branch 'coding-horror:main' into main
2022-01-12 16:43:14 -06:00
Dyego Maas
6a3f0b3259
Fix various indexing problems that caused drifting. Now, the application behaves exactly like the original, even in "invalid" generations.
2022-01-12 16:09:10 -03:00
Dyego Maas
f25adca07a
Fix the initialization of the matrix, which was displacing the pattern in the initial position onto the matrix, which caused the evolution of the simulation to variate in relation with the original game in Basic when once the cells reached the boarder (invalid cases).
2022-01-12 16:07:35 -03:00
Dyego Maas
73665d8b09
Fixes cropping that would happen when using an dot (.) in the beggining of the text.
2022-01-12 16:04:57 -03:00
Dyego Maas
159aa46e21
Fixed pattern reading when inputing DONE, which would lead to incorrect sizing of the pattern transcribed to the matrix and caused drifting in relation to the original.
2022-01-12 16:04:14 -03:00
Jeff Atwood
b0da05a04e
Update README.md
...
add Emulation and Bugfixes section
2022-01-12 10:27:50 -08:00
Jeff Atwood
18ad057f11
Merge pull request #493 from authenticanttibrax/main
...
Add Java coding conventions to 20_Buzzword
2022-01-12 10:23:42 -08:00
Thomas Kwashnak
4485faa7e3
Update High_IQ.py
2022-01-12 13:22:32 -05:00
Thomas Kwashnak
d0ab16bac2
Fixed formatting of tabs into spaces
2022-01-12 13:07:07 -05:00
Thomas Kwashnak
4840012fda
Merge branch 'coding-horror:main' into 48_High_IQ_Python
2022-01-12 13:05:44 -05:00
Dyego Maas
f621116064
Adding instructions on how to enter patterns, and also some examples.
2022-01-12 10:50:36 -03:00
Dyego Maas
f3d63355df
Adding instructions on how to run the example.
2022-01-12 10:09:31 -03:00
Dyego Maas
337e7976d1
Performance optimization, reducing the amount of writes to the console necessary to output each iteration's matrix.
2022-01-12 09:50:35 -03:00
Brax Antti (Oy Samlink Ab)
c8633c6051
Convert 20_Buzzword to Java
...
Provide the output PrintStream dependency to UserInterface in the
constructor instead of have it hard coded to System.out.
2022-01-12 14:33:55 +02:00
Kristian Stolen
329fe3137c
Add rules.
2022-01-12 20:26:18 +08:00
Brax Antti (Oy Samlink Ab)
3e9f1354b3
Convert 20_Buzzword to Java
...
The original version was a straight forward monolithic BASIC-to-Java
conversion. Updated to use common Java coding conventions.
- Split the single static main method into classes. The static part
only contains the bootstrap code for the game.
- Split the word list into three arrays so that there is no need to
use error-prone calculations when choosing the random words.
- Placed the Scanner in a try-with-resources block to ensure that the
scanner gets closed when it is no longer needed.
2022-01-12 14:26:18 +02:00
Kristian Stolen
2758c3375c
Remove static method.
2022-01-12 20:15:37 +08:00
Kristian Stolen
4dc1e57789
Make static method private.
2022-01-12 20:14:33 +08:00
Kristian Stolen
0a7e386c36
Remove static method.
2022-01-12 20:13:57 +08:00
Kristian Stolen
67d1c84f2e
Update program to reference instance of reverser.
2022-01-12 20:13:03 +08:00
Kristian Stolen
eb27f8612e
Add GetArrayString method.
2022-01-12 20:05:17 +08:00
Kristian Stolen
a819a535bb
Define instance methods for reverser.
2022-01-12 20:00:59 +08:00
Kristian Stolen
08282e1a7d
Configure console app
2022-01-12 19:29:09 +08:00
Kristian Stolen
1d4651bfef
Add method for creating a random array of distinct values.
2022-01-12 19:00:51 +08:00
Kristian Stolen
b1cfa83ac5
Add method for checking if a given array is in ascending order.
2022-01-12 19:00:20 +08:00
Kristian Stolen
8e54c0e930
rename tests.
2022-01-12 18:12:15 +08:00
Kristian Stolen
2a809aabc9
Protect against index out of range exceptions
2022-01-12 18:09:57 +08:00
Kristian Stolen
84d473d8f2
Create reverser that reverses an array at a given position.
2022-01-12 17:56:26 +08:00
Tim Buchalka
2eab61fd1d
Merge pull request #492 from trwyant/21_Calendar_perl_trw
...
Convert 21_Calendar to Perl.
2022-01-12 13:00:20 +10:30
Tim Buchalka
34a1cde031
Merge pull request #491 from LittleTealeaf/75_Roulette_Java
...
75 Roulette in Java - Organize Implementations into folders
2022-01-12 12:56:26 +10:30
Tom Wyant
f61148b2e4
Convert 21_Calendar to Perl.
...
This is pretty much a complete rewrite. It displays the current year,
but that can be changed by specifying the desired year on the command
line. It MAY even be sensitive enough to locale to produce output in
languages other than English.
2022-01-11 21:19:47 -05:00
Thomas Kwashnak
f87d306b0f
Added some descriptors to iterative
2022-01-11 21:05:35 -05:00
Thomas Kwashnak
76d5f2dde2
Expanded README to describe different implementations
2022-01-11 21:03:33 -05:00
Thomas Kwashnak
daa06846bf
moved implementations to individual folders
2022-01-11 20:59:56 -05:00
Tim Buchalka
b28a12f52a
Document both contributions of this game
...
Notes relating to both contributed versions of Acey Ducey for Java.
2022-01-12 12:22:37 +10:30