Some type attack calculations
This commit is contained in:
		
							parent
							
								
									2e9f7975d1
								
							
						
					
					
						commit
						4dade4637a
					
				
					 4 changed files with 243 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -17,7 +17,7 @@
 | 
			
		|||
    devShells = forEachSupportedSystem ({pkgs}: {
 | 
			
		||||
      default = pkgs.mkShell {
 | 
			
		||||
        packages = with pkgs;
 | 
			
		||||
          [python311 virtualenv]
 | 
			
		||||
          [python311 virtualenv julia]
 | 
			
		||||
          ++ (with pkgs.python311Packages; [pip requests jupyter pandas numpy matplotlib plotnine polars pyarrow]);
 | 
			
		||||
      };
 | 
			
		||||
    });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										53
									
								
								julia.ipynb
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								julia.ipynb
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,53 @@
 | 
			
		|||
{
 | 
			
		||||
 "cells": [
 | 
			
		||||
  {
 | 
			
		||||
   "cell_type": "code",
 | 
			
		||||
   "execution_count": 1,
 | 
			
		||||
   "metadata": {},
 | 
			
		||||
   "outputs": [
 | 
			
		||||
    {
 | 
			
		||||
     "name": "stdout",
 | 
			
		||||
     "output_type": "stream",
 | 
			
		||||
     "text": [
 | 
			
		||||
      "Julia Version 1.10.0\n",
 | 
			
		||||
      "Commit 3120989f39 (2023-12-25 18:01 UTC)\n",
 | 
			
		||||
      "Build Info:\n",
 | 
			
		||||
      "\n",
 | 
			
		||||
      "    Note: This is an unofficial build, please report bugs to the project\n",
 | 
			
		||||
      "    responsible for this build and not to the Julia project unless you can\n",
 | 
			
		||||
      "    reproduce the issue using official builds available at https://julialang.org/downloads\n",
 | 
			
		||||
      "\n",
 | 
			
		||||
      "Platform Info:\n",
 | 
			
		||||
      "  OS: Linux (x86_64-unknown-linux-gnu)\n",
 | 
			
		||||
      "  CPU: 8 × Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz\n",
 | 
			
		||||
      "  WORD_SIZE: 64\n",
 | 
			
		||||
      "  LIBM: libopenlibm\n",
 | 
			
		||||
      "  LLVM: libLLVM-15.0.7 (ORCJIT, skylake)\n",
 | 
			
		||||
      "  Threads: 1 on 8 virtual cores\n",
 | 
			
		||||
      "Environment:\n",
 | 
			
		||||
      "  LD_LIBRARY_PATH = /nix/store/ccbxkk7cdnfgsl6mgfdlikni4mxwandj-pipewire-1.0.3-jack/lib\n",
 | 
			
		||||
      "  JULIA_NUM_THREADS = \n"
 | 
			
		||||
     ]
 | 
			
		||||
    }
 | 
			
		||||
   ],
 | 
			
		||||
   "source": [
 | 
			
		||||
    "versioninfo()"
 | 
			
		||||
   ]
 | 
			
		||||
  }
 | 
			
		||||
 ],
 | 
			
		||||
 "metadata": {
 | 
			
		||||
  "kernelspec": {
 | 
			
		||||
   "display_name": "Julia 1.10.0",
 | 
			
		||||
   "language": "julia",
 | 
			
		||||
   "name": "julia-1.10"
 | 
			
		||||
  },
 | 
			
		||||
  "language_info": {
 | 
			
		||||
   "file_extension": ".jl",
 | 
			
		||||
   "mimetype": "application/julia",
 | 
			
		||||
   "name": "julia",
 | 
			
		||||
   "version": "1.10.0"
 | 
			
		||||
  }
 | 
			
		||||
 },
 | 
			
		||||
 "nbformat": 4,
 | 
			
		||||
 "nbformat_minor": 2
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										172
									
								
								pokémon.ipynb
									
										
									
									
									
								
							
							
						
						
									
										172
									
								
								pokémon.ipynb
									
										
									
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										19
									
								
								pokémon/Pokemon Type Chart.csv
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								pokémon/Pokemon Type Chart.csv
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,19 @@
 | 
			
		|||
,Normal,Fire,Water,Electric,Grass,Ice,Fighting,Poison,Ground,Flying,Psychic,Bug,Rock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,2.0,1.0,1.0,0.5,1.0,2.0,0.5,0.5
 | 
			
		||||
Rock,1.0,2.0,1.0,1.0,1.0,2.0,0.5,1.0,0.5,2.0,1.0,2.0,1.0,1.0,1.0,1.0,0.5,1.0
 | 
			
		||||
Ghost,0.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,2.0,1.0,1.0,2.0,1.0,0.5,1.0,1.0
 | 
			
		||||
Dragon,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,2.0,1.0,0.5,0.0
 | 
			
		||||
Dark,1.0,1.0,1.0,1.0,1.0,1.0,0.5,1.0,1.0,1.0,2.0,1.0,1.0,2.0,1.0,0.5,1.0,0.5
 | 
			
		||||
Steel,1.0,0.5,0.5,0.5,1.0,2.0,1.0,1.0,1.0,1.0,1.0,1.0,2.0,1.0,1.0,1.0,0.5,2.0
 | 
			
		||||
Fairy,1.0,0.5,1.0,1.0,1.0,1.0,2.0,0.5,1.0,1.0,1.0,1.0,1.0,1.0,2.0,2.0,0.5,1.0
 | 
			
		||||
		
		
			
  | 
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue