             ui_lowBoundaryLabel.text = String(_gameController.lowBoundary)
             ui_highBoundaryLabel.text = String(_gameController.highBoundary)
             
-            cs_boundaryZoneLeading.constant = ViewController.BORDER_MARGIN + CGFloat(_gameController.lowBoundary) * gameRangeToScreenRatio
-            cs_boundaryZoneTrailing.constant = ViewController.BORDER_MARGIN + CGFloat(GameController.MAX_VALUE - _gameController.highBoundary) * gameRangeToScreenRatio
+            cs_boundaryZoneLeading.constant = ViewController.BORDER_MARGIN + CGFloat(_gameController.lowBoundary) * _gameRangeToScreenRatio
+            cs_boundaryZoneTrailing.constant = ViewController.BORDER_MARGIN + CGFloat(GameController.MAX_VALUE - _gameController.highBoundary) * _gameRangeToScreenRatio
             
         } else {
             ui_gameStatusLabel.text = nil

    }
    
    override func viewWillLayoutSubviews() {
        updateDisplay()
        super.viewWillLayoutSubviews()
    }
    
    func updateDisplay() {
        if _gameController.isGameInProgress {
            let barWidth:CGFloat = self.view.bounds.width
                - self.view.safeAreaInsets.left
                - self.view.safeAreaInsets.right
                - 2 * ViewController.BORDER_MARGIN
            let gameRangeToScreenRatio = barWidth / CGFloat(GameController.MAX_VALUE - GameController.MIN_VALUE)
            ui_gameStatusLabel.text = "Essayez de trouver le nombre mystère"
            ui_guessedValueField.isHidden = false
            ui_checkValueButton.isHidden = false


class ViewController: UIViewController {
    static let BORDER_MARGIN:CGFloat = 16
    let _gameRangeToScreenRatio:CGFloat = 1
    let _gameController = GameController()
    @IBOutlet weak var ui_guessedValueField: UITextField!
    @IBOutlet weak var ui_gameStatusLabel: UILabel!
