1"use strict";(self.webpackChunkdsanchezcr=self.webpackChunkdsanchezcr||[]).push([["733"],{4209(e,s,a){a.r(s),a.d(s,{metadata:()=>i,default:()=>b,frontMatter:()=>g,contentTitle:()=>u,toc:()=>x,assets:()=>f});var i=JSON.parse('{"id":"chess/index","title":"Chess","description":"My chess profile and stats on Chess.com. I\'ve been playing chess since I was a kid and enjoy it as a fun pastime.","source":"@site/gaming/chess/index.mdx","sourceDirName":"chess","slug":"/chess/","permalink":"/gaming/chess/","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":8,"frontMatter":{"title":"Chess","sidebar_label":"\u26AB Chess","sidebar_position":8,"hide_table_of_contents":true,"description":"My chess profile and stats on Chess.com. I\'ve been playing chess since I was a kid and enjoy it as a fun pastime.","keywords":["chess","chess.com","board games","strategy","gaming"]},"sidebar":"defaultSidebar","previous":{"title":"\u{1F7E4} Board Games","permalink":"/gaming/board-games/"},"next":{"title":"Monthly Updates","permalink":"/gaming/monthly-updates/"}}'),t=a(74848),r=a(28453),n=a(96540),o=a(10898),l=a(3617);let c="dsanchezcr",d=`https://api.chess.com/pub/player/${c}`,h=`https://api.chess.com/pub/player/${c}/stats`,m={en:{loading:"Loading Chess.com profile...",error:"\u26A0\uFE0F Unable to load Chess.com profile data.",tryAgain:"Try Again",memberSince:"Member since",league:"League",gamesPlayed:"Games Played",wins:"Wins",winRate:"Win Rate",bestTactics:"Best Tactics",gameModes:"\u265F\uFE0F Game Modes",rapid:"Rapid",blitz:"Blitz",daily:"Daily",best:"Best",viewProfile:"View full profile on Chess.com \u2197"},es:{loading:"Cargando perfil de Chess.com...",error:"\u26A0\uFE0F No se pudo cargar el perfil de Chess.com.",tryAgain:"Intentar de nuevo",memberSince:"Miembro desde",league:"Liga",gamesPlayed:"Partidas Jugadas",wins:"Victorias",winRate:"Tasa de Victoria",bestTactics:"Mejor T\xe1ctica",gameModes:"\u265F\uFE0F Mod
1os de Juego",rapid:"R\xe1pida",blitz:"Blitz",daily:"Diaria",best:"Mejor",viewProfile:"Ver perfil completo en Chess.com \u2197"},pt:{loading:"Carregando perfil do Chess.com...",error:"\u26A0\uFE0F N\xe3o foi poss\xedvel carregar o perfil do Chess.com.",tryAgain:"Tentar novamente",memberSince:"Membro desde",league:"Liga",gamesPlayed:"Partidas Jogadas",wins:"Vit\xf3rias",winRate:"Taxa de Vit\xf3ria",bestTactics:"Melhor T\xe1tica",gameModes:"\u265F\uFE0F Modos de Jogo",rapid:"R\xe1pida",blitz:"Blitz",daily:"Di\xe1ria",best:"Melhor",viewProfile:"Ver perfil completo no Chess.com \u2197"}},p=()=>{var e;let{i18n:s}=(0,o.default)(),a=m[!(e=s?.currentLocale)?"en":e.startsWith("es")?"es":e.startsWith("pt")?"pt":"en"]||m.en,[i,r]=(0,n.useState)(null),[p,g]=(0,n.useState)(null),[u,f]=(0,n.useState)(!0),[x,j]=(0,n.useState)(null),b=(0,n.useCallback)(async()=>{f(!0),j(null);try{let[e,s]=await Promise.all([fetch(d),fetch(h)]);if(!e.ok||!s.ok)throw Error("Failed to load Chess.com profile");let a=await e.json(),i=await s.json();r(a),g(i)}catch(e){console.error("Error fetching Chess.com profile:",e),j(e.message)}finally{f(!1)}},[]);if((0,n.useEffect)(()=>{b()},[b]),u)return(0,t.jsx)("div",{className:l.A.profileWidget,children:(0,t.jsxs)("div",{className:l.A.profileLoading,children:[(0,t.jsx)("div",{className:l.A.profileSpinner}),(0,t.jsx)("p",{children:a.loading})]})});if(x)return(0,t.jsx)("div",{className:l.A.profileWidget,children:(0,t.jsxs)("div",{className:l.A.profileError,children:[(0,t.jsx)("p",{children:a.error}),(0,t.jsx)("button",{className:"button button--primary button--sm",onClick:b,children:a.tryAgain})]})});if(!i)return null;let y=e=>e?(e.record?.win||0)+(e.record?.loss||0)+(e.record?.draw||0):0,_=e=>{if(!e)return"\u2014";let s=y(e);return 0===s?"\u2014":`${Math.round(e.record.win/s*100)}%`},v=p?.chess_rapid,M=p?.chess_blitz,w=p?.chess_daily,C=p?.tactics,A=y(v)+y(M)+y(w),N=(v?.record?.win||0)+(M?.record?.win||0)+(w?.record?.win||0),I=i.joined?new Date(1e3*i.joined).toLocaleDateString(void 0,{year:"numeric",month:"short"}):null;return(0,t.jsxs)("div",{className:l.A.profileWidget,children:[(0,t.jsxs)("div",{className:`${l.A.profileHeader} ${l.A.chess}`,children:[i.avatar&&(0,t.jsx)("img",{src:i.avatar,alt:i.username,className:l.A.profileAvatar}),(0,t.jsxs)("div",{className:l.A.profileInfo,children:[(0,t.jsx)("h3",{children:i.name||i.username}),(0,t.jsxs)("p",{children:["Chess.com",i.league?` \xb7 ${i.league} ${a.league}`:"",I?` \xb7 ${a.memberSince} ${I}`:""]})]})]}),(0,t.jsxs)("div",{className:l.A.profileStats,children:[(0,t.jsxs)("div",{className:l.A.statItem,children:[(0,t.jsx)("span",{className:l.A.statValue,children:A.toLocaleString()}),(0,t.jsx)("span",{className:l.A.statLabel,children:a.gamesPlayed})]}),(0,t.jsxs)("div",{className:l.A.statItem,children:[(0,t.jsx)("span",{className:l.A.statValue,children:N.toLocaleString()}),(0,t.jsx)("span",{className:l.A.statLabel,children:a.wins})]}),(0,t.jsxs)("div",{className:l.A.statItem,children:[(0,t.jsx)("span",{className:l.A.statValue,children:A>0?`${Math.round(N/A*100)}%`:"\u2014"}),(0,t.jsx)("span",{className:l.A.statLabel,children:a.winRate})]}),C?.highest?.rating&&(0,t.jsxs)("div",{className:l.A.statItem,children:[(0,t.jsx)("span",{className:l.A.statValue,children:C.highest.rating}),(0,t.jsx)("span",{className:l.A.statLabel,children:a.bestTactics})]})]}),(0,t.jsxs)("div",{className:l.A.chessModesSection,children:[(0,t.jsx)("h4",{children:a.gameModes}),(0,t.jsxs)("div",{className:l.A.chessModesGrid,children:[v&&(0,t.jsxs)("div",{className:l.A.chessModeCard,children:[(0,t.jsx)("div",{className:l.A.chessModeIcon,children:"\u23F1\uFE0F"}),(0,t.jsx)("div",{className:l.A.chessModeTitle,children:a.rapid}),(0,t.jsx)("div",{className:l.A.chessModeRating,children:v.last?.rating||"\u2014"}),(0,t.jsxs)("div",{className:l.A.chessModeDetail,children:[a.best,": ",v.best?.rating||"\u2014"]}),(0,t.jsxs)("div",{className:l.A.chessModeDetail,children:[v.record?.win,"W / ",v.record?.loss,"L / ",v.record?.draw,"D"]}),(0,t.jsxs)("div",{className:l.A.chessModeDetail,children:[a.winRate,": ",_(v)]})]}),M&&(0,t.jsxs)("div",{className:l.A.chessModeCard,children:[(0,t.jsx)("div",{className:l.A.chessModeIcon,children:"\u26A1"}),(0,t.jsx)("div",{className:l.A.chessModeTitle,children:a.blitz}),(0,t.jsx)("div",{className:l.A.chessModeRating,children:M.last?.rating||"\u2014"}),(0,t.jsxs)("div",{className:l.A.chessModeDetail,children:[a.best,": ",M.best?.rating||"\u2014"]}),(0,t.jsxs)("div",{className:l.A.chessModeDetail,children:[M.record?.win,"W / ",M.record?.loss,"L / ",M.record?.draw,"D"]}),(0,t.jsxs)("div",{className:l.A.chessModeDetail,children:[a.winRate,": ",_(M)]})]}),w&&(0,t.jsxs)("div",{className:l.A.chessModeCard,children:[(0,t.jsx)("div",{className:l.A.chessModeIcon,children:"\u{1F4EC}"}),(0,t.jsx)("div",{className:l.A.chessModeTitle,children:a.daily}),(0,t.jsx)("div",{className:l.A.chessModeRating,children:w.last?.rating||"\u2014"}),(0,t.jsxs)("div",{className:l.A.chessModeDetail,children:[a.best,": ",w.best?.rating||"\u2014"]}),(0,t.jsxs)("div",{className:l.A.chessModeDetail,children:[w.record?.win,"W / ",w.record?.loss,"L / ",w.record?.draw,"D"]}),(0,t.jsxs)("div",{className:l.A.chessModeDetail,children:[a.winRate,": ",_(w)]})]})]})]}),(0,t.jsx)("div",{className:l.A.profileCacheNotice,children:(0,t.jsx)("a",{href:`https://www.chess.com/member/${c}`,target:"_blank",rel:"noopener noreferrer",children:a.viewProfile})})]})},g={title:"Chess",sidebar_label:"\u26AB Chess",sidebar_position:8,hide_table_of_contents:!0,description:"My chess profile and stats on Chess.com. I've been playing chess since I was a kid and enjoy it as a fun pastime.",keywords:["chess","chess.com","board games","strategy","gaming"]},u="\u265F\uFE0F Chess",f={},x=[{value:"My Chess.com Profile",id:"my-chesscom-profile",level:2}];function j(e){let s={a:"a",admonition:"admonition",blockquote:"blockquote",h1:"h1",h2:"h2",header:"header",hr:"hr",p:"p",strong:"strong",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.header,{children:(0,t.jsx)(s.h1,{id:"\uFE0F-chess",children:"\u265F\uFE0F Chess"})}),"\n",(0,t.jsx)(s.p,{children:"I've been a chess enthusiast since I was a kid. It's one of the first games I ever learned to play, and I spent countless hours on it growing up. These days I play purely for entertainment, not competitively, but I still love a good game."}),"\n",(0,t.jsx)(s.admonition,{title:"Want to play?",type:"tip",children:(0,t.jsxs)(s.p,{children:["Feel free to challenge me on Chess.com! My username is ",(0,t.jsx)(s.strong,{children:(0,t.jsx)(s.a,{href:"https://www.chess.com/member/dsanchezcr",children:"dsanchezcr"})}),". I'm always happy to play a friendly match."]})}),"\n",(0,t.jsx)(s.h2,{id:"my-chesscom-profile",children:"My Chess.com Profile"}),"\n",(0,t.jsx)(p,{}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsxs)(s.blockquote,{children:["\n",(0,t.jsxs)(s.p,{children:["My favorite time controls are ",(0,t.jsx)(s.strong,{children:"Rapid"})," and ",(0,t.jsx)(s.strong,{children:"Daily"})," \u2014 I enjoy thinking through positions without too much time pressure. I also play ",(0,t.jsx)(s.strong,{children:"Blitz"})," when I want a quick game. Chess is a lifelong journey and every game teaches something new."]}),"\n"]})]})}function b(e={}){let{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(j,{...e})}):j(e)}},3617(e,s,a){a.d(s,{A:()=>i});let i={gameCard:"gameCard_M2B3",gameCardLink:"gameCardLink_C_Zy",platformBadge:"platformBadge_u5WW",gameCardContent:"gameCardContent_b2fv",gameImageContainer:"gameImageContainer_mDi2",gameImage:"gameImage_o56q",gameInfo:"gameInfo_hRos",gameTitle:"gameTitle_FZ_r",gameMeta:"gameMeta_j5l1",gameStatus:"gameStatus_wRlZ",gameHours:"gameHours_aOTY",gameRecommendation:"gameRecommendation_slNh",gameGroupImages:"gameGroupImages_ej17",gameGroupItem:"gameGroupItem_RJgf",gameGroupTitle:"gameGroupTitle_aUjH",gameGroupStatus:"gameGroupStatus_aUSq",gameModeBadges:"gameModeBadges_zd3x",coOpBadge:"coOpBadge_O24z",onlineBadge:"onlineBadge_tZZS",countdownBanner:"countdownBanner_a_JG",countdownLabel:"countdownLabel_S1aq",countdownTimer:"countdownTimer_knE_",friendCodeQR:"friendCodeQR_jvtz",profileWidget:"profileWidget_D3nJ",profileHeader:"profileHeader_dynH",xbox:"xbox_kkvi",playstation:"playstation_Ayme",chess:"chess_myot",profileAvatar:"profileAvatar_SYUF",profileInfo:"profileInfo_tJWJ",profileStats:"profileStats_YUL4",statItem:"statItem_JWyw",statValue:"statValue_yDMr",statLabel:"statLabel_ICdo",profileGames:"profileGames_HlGn",gamesGrid:"gamesGrid_Fsps",recentGameCard:"recentGameCard_YrBW",recentGameLink:"recentGameLink_a5bV",recentGameImage:"recentGameImage_owTk",recentGameTitle:"recentGameTitle_BQZJ",trophyRow:"trophyRow_nGdp",trophyItem:"trophyItem_J6Ke",trophyIcon:"trophyIcon_eU9i",profileLoading:"profileLoading_swID",profileSpinner:"profileSpinner_oxBo",profileSpin:"profileSpin_Nrdi",profileError:"profileError_tEzH",profileCacheNotice:"profileCacheNotice_n2Gc",chessModesSection:"chessModesSection_QEK3",chessModesGrid:"chessModesGrid_MLiu",chessModeCard:"chessModeCard_jtnF",chessModeIcon:"chessModeIcon_SGeo",chessModeTitle:"chessModeTitle_qbaJ",chessModeRating:"chessModeRating_O500",chessModeDetail
1:"chessModeDetail_bGcp"}},28453(e,s,a){a.d(s,{R:()=>n,x:()=>o});var i=a(96540);let t={},r=i.createContext(t);function n(e){let s=i.useContext(r);return i.useMemo(function(){return"function"==typeof e?e(s):{...s,...e}},[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:n(e.components),i.createElement(r.Provider,{value:s},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.