Dev/Tech Snippits

I have a few simple tests that I have built and placed on GitHub.

I will be removing this section in the coming months as I gear towards a more private development project. While I do not respond to unsolicited emails, please feel free to inquire about accessing extra content if we are in discussions regarding a position.

For the first exercise, implement the following steps: 

CHECKERS

  1. Navigate to https://www.gamesforthebrain.com/game/checkers
  2. Confirm that the site is up
  3. Make five legal moves as orange:
  4. Include taking a blue piece
  5. Use “Make a move” as confirmation that you can take the next step
  6. Restart the game after X moves
  7. Confirm that the restart has been successful

AAustin Checkers Test

Check out the README file for notes on process and progress.

/// <reference types="cypress"/>
it('GamesForTheBrain', function () {
cy.visit('https://gamesforthebrain.com/')
//navigate to checkers
cy.get('[href="/game/checkers/"]').click()
//start game - first move
cy.get('[name="space02"]').click()
cy.get('[name="space13"]').click()
cy.wait(2000)
//confirm of system move
cy.get(':nth-child(4) > [src="me1.gif"]')
//could not use should contain, or HTMl-
cy.get('#message').should('contain', 'Make a move.')
//second move
cy.get('[name="space11"]').click()
cy.get('[name="space02"]').click()
cy.wait(2000)
cy.get('#message').should('contain', 'Make a move.')
//third move
cy.get('[name="space20"]').click()
cy.get('[name="space11"]').click()
cy.wait(2000)
//fourth move
cy.get('[name="space62"]').click()
cy.get('[name="space73"]').click()
cy.wait(2000)
//fifth move
cy.get('[name="space71"]').click()
cy.get('[name="space62"]').click()
cy.wait(2000)
//sixth move with jump
cy.get('[name="space42"]').click()
cy.get('[name="space24"]').click()
cy.wait(2000)
cy.get('#message').should('contain', 'Complete the double jump')
cy.get('[name="space06"]').click()
cy.wait(2000)
})