Skip to content

Commit 8586a51

Browse files
committed
Changing "STDIN" to "$stdin" in the
"Rock paper scissors lizard spock" default code.
1 parent c8805d6 commit 8586a51

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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".

src/Community/Training/Easy/EquivalentResistanceCircuitBuilding/EquivalentResistanceCircuitBuilding.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

src/Community/Training/Easy/RockPaperScissorsLizardSpock/RockPaperScissorsLizardSpock.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)