File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212- Tests for "Equivalent resistance, circuit building".
1313- Tests for "1D spreadsheet".
1414
15+ ### Changed
16+ - "STDIN" to "$stdin" in the "Rock paper scissors lizard spock" default code.
17+
1518## [ 3.5.0] - 2022-02-22
1619### Added
1720- Tests for "1000000000D world".
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ class EquivalentResistanceCircuitBuilding implements Puzzle
1313{
1414 public function execute($stdin): void
1515 {
16- fscanf(STDIN , "%d", $N);
16+ fscanf($stdin , "%d", $N);
1717 for ($i = 0; $i < $N; $i++)
1818 {
19- fscanf(STDIN , "%s %d", $name, $R);
19+ fscanf($stdin , "%s %d", $name, $R);
2020 }
21- $circuit = stream_get_line(STDIN , 120 + 1, "\n");
21+ $circuit = stream_get_line($stdin , 120 + 1, "\n");
2222
2323 // Write an answer using echo(). DON'T FORGET THE TRAILING \n
2424
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ class RockPaperScissorsLizardSpock implements Puzzle
1313{
1414 public function execute($stdin): void
1515 {
16- fscanf(STDIN , "%d", $N);
16+ fscanf($stdin , "%d", $N);
1717 for ($i = 0; $i < $N; $i++)
1818 {
19- fscanf(STDIN , "%d %s", $NUMPLAYER, $SIGNPLAYER);
19+ fscanf($stdin , "%d %s", $NUMPLAYER, $SIGNPLAYER);
2020 }
2121
2222 // Write an answer using echo(). DON'T FORGET THE TRAILING \n
You can’t perform that action at this time.
0 commit comments