/**
  * Show the form for editing the specified resource.
  *
  * @param  int  $strpos
  * @return Response
  */
 public function attack($strpos)
 {
     //
     $pos = explode('_', $strpos);
     $bshipModel = new BSmodel();
     $result['stat'] = $bshipModel->attack($pos[1]);
     return json_encode($result);
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $strpos
  * @return Response
  */
 public function attack($strpos)
 {
     //
     $pos = explode('_', $strpos);
     $BS = new BSmodel();
     $result['stat'] = $BS->attack($pos[1] - 1);
     $BS->PushAttack($pos[1], $result['stat']);
     return json_encode($result);
 }