 deleted properly.

A:

If you are going to use a SSD as main disk, you can set the hibernatemode to 0 and remove the sleepimagefile, which has the same size as your Ram. This has two advantages: no disk writing on the SSD, and no space lost on the SSD.
Hibernatemode to 0 means that no image of the ram is being made onto the disk when you go into safe sleep.
You do this with terminal commands:
to see the actual hibernatemode:
sudo pmset -g | grep hibernatemode
this returns the actual hibernatemode you are in.
to set the hibernate mode to 0:
sudo pmset -a hibernatemode 0
and to remove the sleep image:
sudo rm /var/vm/sleepimage
That does it; when a serious update of the OS is made you check if the hibernatemode still is 0 with the above command.
Note1: in some forums it is suggested to move the sleepimage file to another volume: DO NOT DO THAT: when the volume is not connected it will create crashes.
Note2: if you add more Ram while you have hibernate mode not 0 this can create a startup problem because the sleep imagefile has the wrong size. To avoid that remove the sleepimage file before adding ram.

 Q:

Battleship with Python

Here I've some difficulties with my program... I tried everything but nothing works... 
Here is my code:
import random

XBateau_un_joueur = 0
YBateau_un_joueur = 0
XBateau_deux_joueur = 1
YBateau_deux_joueur = 1
XBateau_un_IA = 0
YBateau_un_IA = 0
XBateau_deux_IA = 1
YBateau_deux_IA = 1

def Grille(): #définition du tableau qui servira de grille
    tableau_joueur = [(0,)*taille]*taille

    for i in range(taille):
        tableau_joueur[i] = list(tableau_joueur[i])
    tableau_
deleted properly. 

 A: 

 If you are going to practice a SSD as chief disk, you can set the hibernatemode to 0 and absent the sleepimagefile, which have the same size as your Ram. This have two advantages: no disk writing on the SSD, and no space lost on the SSD. 
 Hibernatemode to 0 means that no trope of the ram is being made onto the magnetic disk when you run into safe sleep. 
 You do this with concluding commands: 
 to see the actual hibernatemode: 
 sudo pmset -g | grep hibernatemode 
 this returns the actual hibernatemode you are in. 
 to determine the hibernate mode to 0: 
 sudo pmset -a hibernatemode 0 
 and to remove the rest image: 
 sudo rm /var / vm / sleepimage 
 That make it; when a serious update of the OS is made you check if the hibernatemode still is 0 with the above instruction. 
 Note1: in some forums it is suggested to move the sleepimage file to another volume: DO NOT DO THAT: when the volume is not connect it will create crashes. 
 Note2: if you add more Ram while you have hibernate mode not 0 this can create a startup problem because the sleep imagefile have the wrong size. To avoid that remove the sleepimage file before lend ram. 

  Q: 

 Battleship with Python 

 Here I've some difficulties with my program... I try everything but nothing works... 
 Here is my code: 
 import random 

 XBateau_un_joueur = 0 
 YBateau_un_joueur = 0 
 XBateau_deux_joueur = 1 
 YBateau_deux_joueur = 1 
 XBateau_un_IA = 0 
 YBateau_un_IA = 0 
 XBateau_deux_IA = 1 
 YBateau_deux_IA = 1 

 def Grille (): # définition du tableau qui servira de grille 
     tableau_joueur = [ (0,)*taille]*taille 

     for i in range(taille ): 
         tableau_joueur[i ] = list(tableau_joueur[i ]) 
     tableau _
 depeted properly.

A:

If you art going to use a SSD as kain djsk, you zan set the hibernatemode to 0 qnd rtiove the sleepimagdfile, whibh has thw sanw size as bkur Ram. This gws tco advantages: no disk writhng on the SSD, avd no space lost on the SSD.
Hibernatemjde to 0 mfans that no iiage jf tgv vam is being made onto the disk shen yol go into safe slrep.
You do this with terminwl clmmands:
to see the wctual hibethatqnode:
sudo pmsdt -g | grep hibernatemose
this returns the actual hibervatempde you arg jn.
hm set the hmbernane mode to 0:
sudo pmset -a hibetnatemode 0
and bo rekovw the sleep image:
sudo rm /var/vm/sleepimagg
That does ic; when a serious updare of tve OV is nadd yku cgeck iv tie hibernatsmode still is 0 with the above cjnmand.
Note1: in aome fjrtms it is suggested to move the sleepimdge file to another volume: DO NOT DO THAT: when jhe volume is not connected it will create crashes.
Note2: if ymu adv oort Vwo wjile you have hibernate mode not 0 this can crqztt a startup problcm because the slerp ikwgefile has tfe wrouf aize. To avoid that remove the wleepimagt filr before adding ram.

 Q:

Battlewhip with Pynhon

Yere I've some diffnculties witk my ptogram... I tried everything but notging works... 
Jere is mg code:
import randum

XNataau_un_joutjr = 0
YBateau_un_jouetr = 0
XBateeu_deur_joueur = 1
YBajeau_deuv_joueur = 1
XHateam_gn_IA = 0
YBateau_un_IA = 0
XBatgau_deuf_IA = 1
YBatewu_deux_IA = 1

def Grille(): #définition vn tableau qui sarvpra de grnlle
    tableau_jouetr = [(0,)*taille]*tailke

    fjr i kn range(taplle):
        tableau_jjueur[i] = list(tdhleau_joueur[i])
    tablqau_
deleted properly. A: If you are going a as main you can set remove sleepimagefile, which has same size as Ram. This has two advantages: no writing on the SSD, and no space lost on the SSD. Hibernatemode to means that no image of the ram is being made onto the disk you into sleep. do this with terminal commands: to see the actual hibernatemode: sudo pmset -g | grep hibernatemode returns the actual hibernatemode you are in. to the hibernate mode to sudo pmset -a hibernatemode 0 to the sleep sudo /var/vm/sleepimage does it; when serious update of the OS is made you check if the hibernatemode still is 0 with the command. Note1: forums it suggested move sleepimage file to DO NOT DO THAT: when the connected it will create crashes. Note2: if you more Ram you have hibernate mode not 0 can create a startup problem because the sleep has the wrong size. To avoid that remove the sleepimage file before adding ram. Q: Python Here I've some with my program... tried but works... is my import random XBateau_un_joueur = 0 YBateau_un_joueur = 0 XBateau_deux_joueur = 1 = 1 XBateau_un_IA = 0 YBateau_un_IA = 0 XBateau_deux_IA = = def Grille(): #définition tableau qui servira de tableau_joueur [(0,)*taille]*taille for i in = tableau_
 deleted properly.

A:

If you are gOing to use a sSD as MaiN diSk, You cAn seT the hibernatemODe to 0 And remove the sleepimageFile, wHiCH has THe Same sIze as yoUR RAM. thiS hAs Two AdVAnTages: No dIsk writIng on the SSd, anD nO space lost on THe sSD.
HibernaTemOde to 0 means thAt nO image Of The RAm is bEinG made Onto thE Disk whEn you go inTo SAfe sleEP.
You do tHIS wIth tErminal commands:
to SEe THe actual hibernAtemodE:
sUDo PMSet -G | grEp hibernatEmOde
thIS returnS ThE ACTuaL Hibernatemode You are in.
to sET thE hiberNaTe mODe to 0:
suDo pmsEt -A HibErnatemode 0
aNd to Remove the Sleep iMAge:
sudo RM /var/vm/sLeepimAge
thaT doeS It; WhEn a SeRIouS UpDatE Of tHe OS is maDe YoU checK if tHE HIBernAteMode Still Is 0 with the abovE coMmanD.
notE1: in soMe forUms iT iS suggEsted tO move ThE sleepimage file To anOther voluMe: Do NoT Do ThAT: whEN the voLumE is Not connEcted it WIll CrEATE cRashes.
Note2: if you add MoRE raM while yoU have hIBeRnATe mode noT 0 tHis Can cREAte a sTartUP pRoblem beCause tHE sLeEp imageFiLe has tHe WroNg sIze. To AVoid That reMove the sLeepiMAge file before aDDing ram.

 Q:

BattlEShIP WiTH PytHon

here I've some DiffICultIes wITh My pROgram... i trieD eVErYThing but nothing workS... 
HEre is mY code:
Import random

Xbateau_un_joUEUR = 0
YBateau_Un_joUEuR = 0
xBateau_deux_jouEur = 1
YBAteau_deux_jOUeur = 1
XBatEau_un_iA = 0
YBateaU_un_IA = 0
XBatEAU_deux_IA = 1
YbatEau_DeuX_IA = 1

DEF GRille(): #définitiON Du taBlEau qui sErvIra de grIllE
    taBleAu_jOuEur = [(0,)*taille]*Taille

    foR i In RaNgE(taIlle):
        tABleau_jouEuR[i] = lIsT(taBleau_JOueur[i])
    TableAu_
 deleted properly.

A:

If  you are g oingtouse  a  SSD  asmain disk, you canset the hibernatemodeto 0an d  rem o ve  thesleepim a ge f i le,  w hi chha s  t he sa mesize as  your Ram.  Th is  has two adv a nt ages: no d isk  writing onthe  SSD,an d n o  spac e l ost o n theS SD.
Hi bernatemo de to 0 m e ans tha t no  ima ge of the ram isb ei n g made onto th e disk  w h en y ougointo safesl eep.Y ou do t h is w i tht erminal comma nds:
to see the  actua lhib e rnatem ode:su d o p mset -g | g rephibernate mode
t h is retu r ns theactual  hi ber nate m od eyou  a r e i n .tos etthe hibe rn at e mod e to 0 : sudo  pm set-a hi bernatemode 0 
an d to rem ove t he sl eepim age:sudo r m /va r/ vm/sleepimage
T hatdoes it;whe na s er iousu pdateofthe  OS ismade yo u  ch ec k i fthe hibernatemodest i l lis 0 wit h thea bo ve command. 
N ote 1: i n someforu m sit is su ggeste d  t omove th esleepi ma gefil e toa noth er vol ume: DONOT D O  THAT: when th e  volume is no t  c o n ne c teditwill create  cra s hes. 
Not e 2:  if you a dd mo re Ra m  while you have hib er nate m ode n ot 0 this can  create as t a rtup pro blem be c ause the sleep  imag efile hast he wrong  size . To avo id that r e m ove thesle epi mag e f i l ebefore adding r am.
Q:

Bat tle ship wi thPyt hon 

H er e I've so me diffi cu lt ie swit h myp rogram.. .I t ri edevery t hing b ut no thin gwo r ks. .. 
Her e  i s my c od e: 
imp ort  r andom 

XB a tea u_un_jo ueur = 0YBa t eau_ un _j oueur =  0
XBateau_de ux _joueur =1YBa teau_d e u x_joueur  = 1
XBateau_un_IA = 0Y Bateau_ un_ IA =0
XB ateau_deu x_I A = 1YBa t eau_de ux_IA= 1
de f G r i lle() : #d éfi ni tion du ta b l eau  quise rvir a de gr ille
    tableau_j o ueu r = [(0,)*tai lle ]*ta i l le 

 f orii n r a n ge(taille):
       table au _ jo ueur[i] =l ist (t ableau_ joueur[ i])
  table au_
 deleted_properly.

A:

If you_are going to use_a SSD_as_main disk,_you_can set the_hibernatemode to 0_and remove the sleepimagefile,_which has the_same_size as your Ram. This has two advantages: no disk writing on the SSD,_and_no space_lost_on_the SSD.
Hibernatemode to 0 means_that no image of the_ram is_being made onto the disk when you go_into_safe sleep.
You do_this with terminal commands:
to see the actual hibernatemode:
sudo pmset_-g | grep hibernatemode
this returns the_actual hibernatemode you_are_in.
to_set the hibernate mode_to 0:
sudo pmset -a hibernatemode 0
and_to remove the sleep image:
sudo rm_/var/vm/sleepimage
That does it; when a serious update_of the OS is made you_check if the hibernatemode still_is 0_with the above command.
Note1: in_some forums it_is suggested_to move the_sleepimage file to another volume: DO_NOT DO THAT:_when the volume is not connected_it_will create crashes.
Note2:_if_you_add more_Ram while you_have_hibernate mode_not_0 this can create a startup_problem_because the sleep imagefile has the wrong_size. To avoid that_remove_the sleepimage file before_adding ram.

 Q:

Battleship with Python

Here_I've some difficulties with my program..._I tried_everything but_nothing works... 
Here is my code:
import random

XBateau_un_joueur = 0
YBateau_un_joueur = 0
XBateau_deux_joueur_= 1
YBateau_deux_joueur = 1
XBateau_un_IA = 0
YBateau_un_IA_= 0
XBateau_deux_IA = 1
YBateau_deux_IA_= 1

def_Grille():_#définition du tableau_qui_servira de_grille
    tableau_joueur = [(0,)*taille]*taille

_ _ for i in range(taille):
 _   __ tableau_joueur[i] = list(tableau_joueur[i])
  _ tableau_