Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sam-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Resources:
Properties:

# This function uses the Nodejs v8.10 runtime.
Runtime: nodejs8.10
Runtime: nodejs12.x

# This is the Lambda function's handler.
Handler: handler.lambdaHandler
Expand Down Expand Up @@ -46,4 +46,4 @@ Outputs:
# https://github.com/awslabs/serverless-application-model/blob/master/docs/internals/generated_resources.rst#api
StagingUrl:
Description: "Staging URL"
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/"
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/"
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import Game from './game.js'

let p1, p2
while (!p1) {
p1 = window.prompt('Enter player 1 name:')
p1 = window.prompt('Who is player 1?')
}

while (!p2 && p1 !== p2) {
p2 = window.prompt(p1 === p2
? `Please enter a different name than ${p1}.`
: 'Enter player 2 name:')
: 'Who is player 2?')
}

window.onload = () => {
Expand Down