# OpenSpiel game methods: new_initial_state

[Back to Core API reference](../api_reference.md) \
<br>

`new_initial_state()`

Returns a new state object representing the first state of the game. Note, in
particular, this might be a chance node (where the current player is chance) in
games with chance events.

## Examples:

```python
import pyspiel

game = pyspiel.load_game("breakthrough")
state = game.new_initial_state()
print(state)

# Output
# . . . . . . . . . . .
# . . . . . . . . . . .
#  . . . . . . . . . . .
#   . . . . . . . . . . .
#    . . . . . . . . . . .
#     . . . . . . . . . . .
#      . . . . . . . . . . .
#       . . . . . . . . . . .
#        . . . . . . . . . . .
#         . . . . . . . . . . .
#          . . . . . . . . . . .
```

# OpenSpiel game methods: new_initial_state

[Back to Core API reference](../api_reference.md) \
<br>

`new_initial_state()`

Returns a new state object representing the first state of the game. Note, in
particular, this might be a chance node (where the current player is chance) in
games with chance events.

## Examples:

```python
import pyspiel

game = pyspiel.load_game("hex")
state = game.new_initial_state()
print(state)

# Output:
# . . . . . . . . . . .
#  . . . . . . . . . . .
#   . . . . . . . . . . .
#    . . . . . . . . . . .
#     . . . . . . . . . . .
#      . . . . . . . . . . .
#       . . . . . . . . . . .
#        . . . . . . . . . . .
#         . . . . . . . . . . .
#          . . . . . . . . . . .
#           . . . . . . . . . . .
```

Fix typo in API reference.
Fix typo in API reference.

PiperOrigin-RevId: 472295803
Change-Id: Iad0b43220d69b3a72b5c0cd17faa23c3f21dc069
